Submission #00123


ソースコード

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
#include<stdio.h>
signed main(){
long long n,q;
scanf("%lld %lld",&n,&q);
long long a[n+1],i;
for(i=0;i<n;i++){
scanf("%lld",&a[i]);
}
long long r[n+1];
long long j;
long long min;
long long x[n+1];
for(i=0;i<q;i++){
scanf("%lld",&r[i]);
min=a[0];
for(j=0;j<r[i];j++){
if(min>a[j+1]){
min=a[j+1];
}
}
x[i]=min;
}
for(i=0;i<q;i++){
printf("%lld\n",x[i]);
}
return(0);
}

ステータス

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

セット

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

テストケース

ファイル名 状態 実行時間 メモリ使用量 #
in01_01.txt WA 24 ms 376 KB
1
2
in01_02.txt WA 20 ms 416 KB
1
2
in01_03.txt WA 20 ms 432 KB
1
2
in01_04.txt WA 14 ms 372 KB
1
2
in01_05.txt WA 17 ms 400 KB
1
2
in01_06.txt AC 18 ms 404 KB
1
2
in01_07.txt WA 18 ms 440 KB
1
2
in01_08.txt AC 18 ms 472 KB
1
2
in01_09.txt WA 17 ms 508 KB
1
2
in01_10.txt AC 16 ms 536 KB
1
2
in01_11.txt AC 17 ms 700 KB
1
2
in01_12.txt AC 35 ms 608 KB
1
2
in01_13.txt AC 26 ms 540 KB
1
2
in02_01.txt TLE 1000 ms 2084 KB
2
in02_02.txt TLE 1000 ms 4364 KB
2
in02_03.txt WA 812 ms 4452 KB
2
in02_04.txt TLE 1000 ms 4440 KB
2
in02_05.txt TLE 1000 ms 2660 KB
2
in02_06.txt TLE 1000 ms 2516 KB
2
in02_07.txt TLE 1000 ms 2516 KB
2
in02_08.txt TLE 1000 ms 3136 KB
2
in02_09.txt TLE 1000 ms 4272 KB
2
in02_10.txt TLE 1000 ms 2308 KB
2
in02_11.txt TLE 1000 ms 4228 KB
2
in02_12.txt TLE 1000 ms 2456 KB
2
in02_13.txt TLE 1000 ms 2456 KB
2
sample01.txt AC 20 ms 656 KB
1
2