結果
| 問題 | No.264 じゃんけん |
| コンテスト | |
| ユーザー |
phi_prog_8
|
| 提出日時 | 2015-08-07 22:30:53 |
| 言語 | C90(gcc12) (gcc 12.4.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 201 bytes |
| 記録 | |
| コンパイル時間 | 113 ms |
| コンパイル使用メモリ | 28,616 KB |
| 最終ジャッジ日時 | 2026-02-23 19:01:22 |
|
ジャッジサーバー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