結果
問題 | No.264 じゃんけん |
ユーザー |
![]() |
提出日時 | 2015-11-05 21:01:20 |
言語 | C90 (gcc 12.3.0) |
結果 |
AC
|
実行時間 | 1 ms / 5,000 ms |
コード長 | 199 bytes |
コンパイル時間 | 106 ms |
コンパイル使用メモリ | 20,352 KB |
実行使用メモリ | 6,944 KB |
最終ジャッジ日時 | 2024-09-13 12:50:33 |
合計ジャッジ時間 | 612 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 9 |
コンパイルメッセージ
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("Drew"); if(c == -1 || c == 2) printf("Won"); if(c == 1 || c == -2) printf("Lost"); return 0; }