Submission #00020


ソースコード

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#include<stdio.h>
signed main(){
int a,b,c,d,e,i;
d=0;
e=0;
scanf("%d %d",&a,&b);
while(b>0){
scanf("%d",&c);
if(d<a){
d=d+c;
c=0;
e=e+1;
}
b=b-1;
}
if(d>=a)
printf(" %d person\nShe is still alive.\n",e);
if(d<a)
printf("She is sleeping forever.\n");
return(0);
}

ステータス

項目 データ
問題 0002 - 浦島太郎!!
ユーザー名 r1910
投稿日時 2019-05-29 17:04:21
言語 C
状態 Wrong Answer
得点 0
ソースコード長 339 Byte
最大実行時間 31 ms
最大メモリ使用量 560 KB

セット

セット 得点 Cases
1 ALL 0 / 1 *

テストケース

ファイル名 状態 実行時間 メモリ使用量 #
in01.txt WA 29 ms 376 KB
1
in02.txt WA 18 ms 400 KB
1
in03.txt AC 17 ms 324 KB
1
in04.txt AC 18 ms 376 KB
1
in05.txt WA 31 ms 428 KB
1
in06.txt WA 17 ms 388 KB
1
in07.txt WA 29 ms 404 KB
1
in08.txt AC 20 ms 452 KB
1
in09.txt WA 30 ms 504 KB
1
in10.txt WA 14 ms 560 KB
1