Submission #00017
ソースコード
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:00:17 |
言語 | C |
状態 | Wrong Answer |
得点 | 0 |
ソースコード長 | 335 Byte |
最大実行時間 | 24 ms |
最大メモリ使用量 | 504 KB |
セット
セット | 得点 | Cases | |
---|---|---|---|
1 | ALL | 0 / 1 | * |
テストケース
ファイル名 | 状態 | 実行時間 | メモリ使用量 | # |
---|---|---|---|---|
in01.txt | WA | 24 ms | 376 KB |
1
|
in02.txt | WA | 24 ms | 436 KB |
1
|
in03.txt | WA | 22 ms | 452 KB |
1
|
in04.txt | WA | 20 ms | 376 KB |
1
|
in05.txt | WA | 19 ms | 328 KB |
1
|
in06.txt | WA | 18 ms | 476 KB |
1
|
in07.txt | WA | 18 ms | 432 KB |
1
|
in08.txt | WA | 21 ms | 448 KB |
1
|
in09.txt | WA | 16 ms | 504 KB |
1
|
in10.txt | WA | 20 ms | 452 KB |
1
|