Submission #00005
ソースコード
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,w[110],p=0; scanf ( "%d %d" ,&a,&b); for (c=0;c<b;c++){ scanf ( "%d" ,&w[c]); } for (c=0;c<b;c++){ if (a>0){ p++; } a=a-w[c]; } if (a<=0){ printf ( "%dperson\nShe is still alive.\n" ,p); } else { printf ( "She is sleeping foreever.\n" ); } return (0); } |
ステータス
項目 | データ |
---|---|
問題 | 0002 - 浦島太郎!! |
ユーザー名 | ei1923 |
投稿日時 | 2019-05-29 16:15:21 |
言語 | C |
状態 | Wrong Answer |
得点 | 0 |
ソースコード長 | 354 Byte |
最大実行時間 | 28 ms |
最大メモリ使用量 | 504 KB |
セット
セット | 得点 | Cases | |
---|---|---|---|
1 | ALL | 0 / 1 | * |
テストケース
ファイル名 | 状態 | 実行時間 | メモリ使用量 | # |
---|---|---|---|---|
in01.txt | AC | 24 ms | 504 KB |
1
|
in02.txt | AC | 28 ms | 308 KB |
1
|
in03.txt | WA | 16 ms | 328 KB |
1
|
in04.txt | WA | 20 ms | 384 KB |
1
|
in05.txt | AC | 24 ms | 464 KB |
1
|
in06.txt | AC | 19 ms | 364 KB |
1
|
in07.txt | AC | 17 ms | 324 KB |
1
|
in08.txt | WA | 14 ms | 340 KB |
1
|
in09.txt | AC | 20 ms | 392 KB |
1
|
in10.txt | AC | 24 ms | 448 KB |
1
|