Submission #00002
ソースコード
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=0,b=0,c=0,d,w[110],p=1; scanf ( "%d %d" ,&a,&b); for (c=0;c<b;c++){ scanf ( "%d" ,&w[c]); } for (c=0;c<b;c++){ a=a-w[c]; if (a>0){ p++; } } 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:12:03 |
言語 | C |
状態 | Wrong Answer |
得点 | 0 |
ソースコード長 | 360 Byte |
最大実行時間 | 28 ms |
最大メモリ使用量 | 504 KB |
セット
セット | 得点 | Cases | |
---|---|---|---|
1 | ALL | 0 / 1 | * |
テストケース
ファイル名 | 状態 | 実行時間 | メモリ使用量 | # |
---|---|---|---|---|
in01.txt | AC | 27 ms | 504 KB |
1
|
in02.txt | AC | 20 ms | 308 KB |
1
|
in03.txt | WA | 19 ms | 324 KB |
1
|
in04.txt | WA | 17 ms | 376 KB |
1
|
in05.txt | AC | 17 ms | 432 KB |
1
|
in06.txt | AC | 25 ms | 476 KB |
1
|
in07.txt | AC | 23 ms | 428 KB |
1
|
in08.txt | WA | 17 ms | 316 KB |
1
|
in09.txt | AC | 22 ms | 372 KB |
1
|
in10.txt | AC | 28 ms | 432 KB |
1
|