Submission #00328
ソースコード
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 | #include<stdio.h> int main(){ int n; float a,b,c,d; scanf ( "%f" ,&n); scanf ( "%f %f" ,&a,&b); scanf ( "%f %f" ,&c,&d); if (( float )n/b*a>( float )n/d*c){ printf ( "Winner is Emiya\n" ); } if (( float )n/b*a<( float )n/d*c){ printf ( "Winner is AUO\n" ); } if (( float )n/b*a=( float )n/d*c){ printf ( "Drew\n" ); } return (0); } |
ステータス
項目 | データ |
---|---|
問題 | 0007 - 家事王VS英雄王 |
ユーザー名 | ei1710 |
投稿日時 | 2017-04-28 17:58:14 |
言語 | C |
状態 | Compile Error |
得点 | 0 |
ソースコード長 | 356 Byte |
最大実行時間 | - |
最大メモリ使用量 |
コンパイルメッセージ
./Main.c: In function ‘main’: ./Main.c:14:18: error: lvalue required as left operand of assignment if((float)n/b*a=(float)n/d*c){ ^
セット
セット | 得点 | Cases |
---|
テストケース
ファイル名 | 状態 | 実行時間 | メモリ使用量 | # |
---|