結果
| 問題 |
No.264 じゃんけん
|
| コンテスト | |
| ユーザー |
fuu32
|
| 提出日時 | 2017-10-29 14:25:49 |
| 言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
AC
|
| 実行時間 | 2 ms / 5,000 ms |
| コード長 | 729 bytes |
| コンパイル時間 | 1,460 ms |
| コンパイル使用メモリ | 164,980 KB |
| 実行使用メモリ | 5,248 KB |
| 最終ジャッジ日時 | 2024-11-22 05:11:50 |
| 合計ジャッジ時間 | 2,000 ms |
|
ジャッジサーバーID (参考情報) |
judge5 / judge1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 9 |
ソースコード
#include<bits/stdc++.h>
#define REP(i,n) for(int i=0;i<n;i++)
#define LOOP(i,x,n) for(int i=x;i<n;i++)
#define ALL(v) (v).begin(),(v).end()
#define PB push_back
#define MP make_pair
#define FIR first
#define UB upper_bound
#define LB lower_bound
#define int long long
using namespace std;
const int MOD=1000000007;
const int INF=1000000009;
signed main(){
int n,k;
cin>>n>>k;
if(n==0){
if(k==1)cout<<"Won"<<endl;
else if(k==2)cout<<"Lost"<<endl;
else cout<<"Drew"<<endl;
}else if(n==1){
if(k==2)cout<<"Won"<<endl;
else if(k==0)cout<<"Lost"<<endl;
else cout<<"Drew"<<endl;
}else{
if(k==0)cout<<"Won"<<endl;
else if(k==1)cout<<"Lost"<<endl;
else cout<<"Drew"<<endl;
}
return 0;
}
fuu32