結果
| 問題 |
No.264 じゃんけん
|
| コンテスト | |
| ユーザー |
184
|
| 提出日時 | 2015-08-07 22:22:23 |
| 言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 252 bytes |
| コンパイル時間 | 407 ms |
| コンパイル使用メモリ | 55,444 KB |
| 実行使用メモリ | 6,944 KB |
| 最終ジャッジ日時 | 2024-07-18 05:07:18 |
| 合計ジャッジ時間 | 775 ms |
|
ジャッジサーバーID (参考情報) |
judge1 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 6 WA * 3 |
コンパイルメッセージ
main.cpp: In function ‘int main()’:
main.cpp:11:22: warning: ignoring return value of ‘int scanf(const char*, ...)’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
11 | int n,k;scanf("%d%d",&n,&k);
| ~~~~~^~~~~~~~~~~~~~
ソースコード
#include <cstdio>
#include <cstdlib>
#include <algorithm>
#include <iostream>
using namespace std;
//namaega184
int main(){
int n,k;scanf("%d%d",&n,&k);
if(n==k)printf("DreW\n");
if((n+1)%3==k)printf("Won\n");
else printf("Lost\n");
return 0;
}
184