結果
| 問題 |
No.264 じゃんけん
|
| コンテスト | |
| ユーザー |
newlife171128
|
| 提出日時 | 2018-01-25 17:19:24 |
| 言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 732 bytes |
| コンパイル時間 | 2,264 ms |
| コンパイル使用メモリ | 157,500 KB |
| 実行使用メモリ | 5,248 KB |
| 最終ジャッジ日時 | 2024-12-26 15:34:51 |
| 合計ジャッジ時間 | 2,483 ms |
|
ジャッジサーバーID (参考情報) |
judge1 / judge5 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 8 WA * 1 |
ソースコード
#include <bits/stdc++.h>
#include <iostream>
#include <iomanip>
#include <vector>
#include <algorithm>
#include <string>
#include <sstream>
#include <cmath>
#include <stack>
#include <queue>
#include <cctype>
#include <stdio.h>
#include <map>
#include <string.h>
#include <utility>
typedef long long ll;
using namespace std;
typedef pair<int, int> P;
int main() {
int x,y;
cin>>x>>y;
if(x ==y){
cout<<"Drew"<<endl;
}else if (x==0 && y==1) {
cout<<"Won"<<endl;
}else if (x==0&& y==0) {
cout<<"Lost"<<endl;
}else if (x==1 && y==0) {
cout<<"Lost"<<endl;
}else if (x==1&& y==2) {
cout<<"Won"<<endl;
}else if (x==2 && y==1) {
cout<<"Lost"<<endl;
}else if (x==2&& y==0) {
cout<<"Won"<<endl;
}
return 0;
}
newlife171128