結果
問題 | No.264 じゃんけん |
ユーザー |
|
提出日時 | 2016-01-19 21:01:18 |
言語 | C++11 (gcc 13.3.0) |
結果 |
AC
|
実行時間 | 1 ms / 5,000 ms |
コード長 | 247 bytes |
コンパイル時間 | 147 ms |
コンパイル使用メモリ | 22,528 KB |
実行使用メモリ | 5,376 KB |
最終ジャッジ日時 | 2024-09-21 14:26:36 |
合計ジャッジ時間 | 734 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 9 |
コンパイルメッセージ
main.cpp: In function ‘int main()’: main.cpp:5:10: warning: ignoring return value of ‘int scanf(const char*, ...)’ declared with attribute ‘warn_unused_result’ [-Wunused-result] 5 | scanf("%d%d",&n,&k); | ~~~~~^~~~~~~~~~~~~~
ソースコード
#include<stdio.h> int main(void){ int n,k,ans; scanf("%d%d",&n,&k); ans = ((n-k)+3)%3; if(ans==0){ printf("Drew\n"); }else if(ans==1){ printf("Lost\n"); }else{ printf("Won\n"); } return 0; }