Submission #00019


ソースコード

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){
if(d<a){
scanf("%d",&c);
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:01:37
言語 C
状態 Wrong Answer
得点 0
ソースコード長 339 Byte
最大実行時間 27 ms
最大メモリ使用量 492 KB

セット

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

テストケース

ファイル名 状態 実行時間 メモリ使用量 #
in01.txt WA 27 ms 376 KB
1
in02.txt WA 21 ms 432 KB
1
in03.txt AC 17 ms 364 KB
1
in04.txt AC 17 ms 380 KB
1
in05.txt WA 20 ms 432 KB
1
in06.txt WA 20 ms 492 KB
1
in07.txt WA 26 ms 448 KB
1
in08.txt AC 21 ms 376 KB
1
in09.txt WA 22 ms 392 KB
1
in10.txt WA 21 ms 444 KB
1