結果
| 問題 |
No.264 じゃんけん
|
| コンテスト | |
| ユーザー |
phi_prog_8
|
| 提出日時 | 2015-08-07 22:30:53 |
| 言語 | C90 (gcc 12.3.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 201 bytes |
| コンパイル時間 | 68 ms |
| コンパイル使用メモリ | 19,968 KB |
| 実行使用メモリ | 6,948 KB |
| 最終ジャッジ日時 | 2024-07-18 05:10:38 |
| 合計ジャッジ時間 | 473 ms |
|
ジャッジサーバーID (参考情報) |
judge3 / judge5 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 5 WA * 4 |
コンパイルメッセージ
main.c: In function ‘main’:
main.c:5:3: warning: ignoring return value of ‘scanf’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
5 | scanf("%d",&a);
| ^~~~~~~~~~~~~~
main.c:6:3: warning: ignoring return value of ‘scanf’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
6 | scanf("%d",&b);
| ^~~~~~~~~~~~~~
ソースコード
#include <stdio.h>
int main(void)
{
int a,b;
scanf("%d",&a);
scanf("%d",&b);
if (a-b>0) printf("Won\n");
else if (a-b==0) printf("Drew\n");
else if (a-b<0) printf("Lost\n");
return 0;
}
phi_prog_8