結果
| 問題 |
No.264 じゃんけん
|
| コンテスト | |
| ユーザー |
yamaken1343
|
| 提出日時 | 2015-11-05 21:00:45 |
| 言語 | C90 (gcc 12.3.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 199 bytes |
| コンパイル時間 | 245 ms |
| コンパイル使用メモリ | 20,480 KB |
| 実行使用メモリ | 6,944 KB |
| 最終ジャッジ日時 | 2024-09-13 12:50:30 |
| 合計ジャッジ時間 | 750 ms |
|
ジャッジサーバーID (参考情報) |
judge3 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 6 WA * 3 |
コンパイルメッセージ
main.c: In function ‘main’:
main.c:4:9: warning: ignoring return value of ‘scanf’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
4 | scanf("%d%d",&a,&b);
| ^~~~~~~~~~~~~~~~~~~
ソースコード
#include<stdio.h>
int main(void){
int a,b,c;
scanf("%d%d",&a,&b);
c = a-b;
if(c == 0) printf("Draw");
if(c == -1 || c == 2) printf("Won");
if(c == 1 || c == -2) printf("Lost");
return 0;
}
yamaken1343