Submission #00308
ソースコード
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 | #include<stdio.h> int main(){ int n,a,b,c,d,ans=0,ANS=0,i=0,I,count=0; scanf ( "%d" ,&n); scanf ( "%d %d" ,&a,&b); scanf ( "%d %d" ,&c,&d); i=n/b; while (count<=i){ ans=ans+a; count++; } count=0; I=n/d; while (count<=I){ ANS=ANS+c; count++; } if (ans==ANS){ printf ( "DraW\n" ); } else if (ans>ANS){ printf ( "Winner is Emiya\n" ); } else { printf ( "Winner is AUO\n" ); } return (0); } |
ステータス
項目 | データ |
---|---|
問題 | 0007 - 家事王VS英雄王 |
ユーザー名 | Zzz..ei1704..Zzz |
投稿日時 | 2017-04-28 17:51:17 |
言語 | C |
状態 | Wrong Answer |
得点 | 0 |
ソースコード長 | 446 Byte |
最大実行時間 | 25 ms |
最大メモリ使用量 | 536 KB |
セット
セット | 得点 | Cases | |
---|---|---|---|
1 | ALL | 0 / 20 | * |
テストケース
ファイル名 | 状態 | 実行時間 | メモリ使用量 | # |
---|---|---|---|---|
input01.txt | AC | 16 ms | 380 KB |
1
|
input02.txt | AC | 25 ms | 440 KB |
1
|
input03.txt | WA | 18 ms | 472 KB |
1
|
input04.txt | AC | 17 ms | 536 KB |
1
|
input05.txt | WA | 15 ms | 380 KB |
1
|
input06.txt | WA | 16 ms | 288 KB |
1
|
input07.txt | WA | 15 ms | 348 KB |
1
|
input08.txt | WA | 14 ms | 412 KB |
1
|