結果
問題 |
No.264 じゃんけん
|
ユーザー |
![]() |
提出日時 | 2015-09-08 21:03:24 |
言語 | C90 (gcc 12.3.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 140 bytes |
コンパイル時間 | 90 ms |
コンパイル使用メモリ | 20,480 KB |
実行使用メモリ | 5,376 KB |
最終ジャッジ日時 | 2024-07-19 05:00:36 |
合計ジャッジ時間 | 552 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 8 WA * 1 |
コンパイルメッセージ
main.c:2:1: warning: return type defaults to ‘int’ [-Wimplicit-int] 2 | main(){ | ^~~~ main.c: In function ‘main’: main.c:4:1: warning: ignoring return value of ‘scanf’ declared with attribute ‘warn_unused_result’ [-Wunused-result] 4 | scanf("%d%d",&a,&b); | ^~~~~~~~~~~~~~~~~~~
ソースコード
#include<stdio.h> main(){ int a,b; scanf("%d%d",&a,&b); if((b-a)%3==1)printf("Won"); else if((b-a)==0)printf("Drew"); else printf("Lost"); }