結果
| 問題 |
No.264 じゃんけん
|
| コンテスト | |
| ユーザー |
fumi6328
|
| 提出日時 | 2018-07-06 19:23:08 |
| 言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
| 結果 |
AC
|
| 実行時間 | 1 ms / 5,000 ms |
| コード長 | 248 bytes |
| コンパイル時間 | 110 ms |
| コンパイル使用メモリ | 22,528 KB |
| 実行使用メモリ | 6,944 KB |
| 最終ジャッジ日時 | 2024-07-01 02:52:09 |
| 合計ジャッジ時間 | 668 ms |
|
ジャッジサーバーID (参考情報) |
judge3 / judge1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 9 |
コンパイルメッセージ
main.cpp: In function ‘int main()’:
main.cpp:7:14: warning: ignoring return value of ‘int scanf(const char*, ...)’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
7 | scanf("%d%d",&me,&you);
| ~~~~~^~~~~~~~~~~~~~~~~
ソースコード
#include<stdio.h>
int main()
{
int me,you;
scanf("%d%d",&me,&you);
switch((me-you+3)%3){
case 0:
printf("Drew");
break;
case 1:
printf("Lost");
break;
case 2:
printf("Won");
break;
}
return 0;
}
fumi6328