Submission #00124


ソースコード

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
#include<bits/stdc++.h>
using namespace std;
signed main(){
long long N, Q, R;
cin >> N >> Q; /* Ν => 数列の長さ。 Q => 質問の回数 */
int a[N], i;
for(i=0; i<N; i++){
cin >> a[i];/* N文字の数列を入力 */
}
for(i=0; i<Q; i++){
cin >> R;
int A[R], tm[R];
for(int j=0; j<R; j++){
A[j] = a[j + 1];
tm[j] = a[j];
A[j] = min( a[j], A[j] );
}
cout << A[0] << endl;
}
return 0;
}

ステータス

項目 データ
問題 0003 - Minimum Value
ユーザー名 ei2030
投稿日時 2020-07-14 17:59:53
言語 C++
状態 Wrong Answer
得点 0
ソースコード長 534 Byte
最大実行時間 1000 ms
最大メモリ使用量 4876 KB

セット

セット 得点 Cases
1 task01 0 / 10 in01*, sample01.txt
2 task02 0 / 20 *

テストケース

ファイル名 状態 実行時間 メモリ使用量 #
in01_01.txt WA 21 ms 604 KB
1
2
in01_02.txt WA 25 ms 444 KB
1
2
in01_03.txt WA 20 ms 544 KB
1
2
in01_04.txt WA 23 ms 636 KB
1
2
in01_05.txt WA 31 ms 604 KB
1
2
in01_06.txt AC 26 ms 576 KB
1
2
in01_07.txt WA 24 ms 544 KB
1
2
in01_08.txt AC 29 ms 636 KB
1
2
in01_09.txt AC 27 ms 600 KB
1
2
in01_10.txt WA 25 ms 696 KB
1
2
in01_11.txt WA 26 ms 664 KB
1
2
in01_12.txt AC 19 ms 624 KB
1
2
in01_13.txt AC 23 ms 720 KB
1
2
in02_01.txt TLE 1000 ms 1968 KB
2
in02_02.txt TLE 1000 ms 3248 KB
2
in02_03.txt TLE 1000 ms 3316 KB
2
in02_04.txt TLE 1000 ms 3628 KB
2
in02_05.txt TLE 1000 ms 3824 KB
2
in02_06.txt TLE 1000 ms 3764 KB
2
in02_07.txt TLE 1000 ms 3960 KB
2
in02_08.txt TLE 1000 ms 3132 KB
2
in02_09.txt TLE 1000 ms 4420 KB
2
in02_10.txt TLE 1000 ms 4616 KB
2
in02_11.txt TLE 1000 ms 4808 KB
2
in02_12.txt TLE 1000 ms 4876 KB
2
in02_13.txt TLE 1000 ms 4816 KB
2
sample01.txt WA 27 ms 2576 KB
1
2