Submission #00295
ソースコード
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 28 29 30 | #include<stdio.h> int main(){ int n,a,b,c,d,ans=0,ANS=0,i=0,I,count=0; char x[256]= "Winner is Emiya" ; char y[256]= "Winner is AUO" ; char z[256]= "Draw" ; 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 ( "%s\n" ,z); } else if (ans>ANS){ printf ( "%s\n" ,x); } else { printf ( "%s\n" ,y); } return (0); } |
ステータス
項目 | データ |
---|---|
問題 | 0007 - 家事王VS英雄王 |
ユーザー名 | Zzz..ei1704..Zzz |
投稿日時 | 2017-04-28 17:47:42 |
言語 | C |
状態 | Wrong Answer |
得点 | 0 |
ソースコード長 | 515 Byte |
最大実行時間 | 24 ms |
最大メモリ使用量 | 476 KB |
セット
セット | 得点 | Cases | |
---|---|---|---|
1 | ALL | 0 / 20 | * |
テストケース
ファイル名 | 状態 | 実行時間 | メモリ使用量 | # |
---|---|---|---|---|
input01.txt | AC | 24 ms | 352 KB |
1
|
input02.txt | AC | 18 ms | 444 KB |
1
|
input03.txt | AC | 18 ms | 476 KB |
1
|
input04.txt | AC | 15 ms | 444 KB |
1
|
input05.txt | AC | 13 ms | 380 KB |
1
|
input06.txt | WA | 16 ms | 408 KB |
1
|
input07.txt | AC | 16 ms | 472 KB |
1
|
input08.txt | AC | 14 ms | 408 KB |
1
|