結果

問題 No.264 じゃんけん
ユーザー tntan
提出日時 2015-10-19 19:41:12
言語 C++11(廃止可能性あり)
(gcc 13.3.0)
結果
AC  
実行時間 2 ms / 5,000 ms
コード長 404 bytes
コンパイル時間 601 ms
コンパイル使用メモリ 71,084 KB
実行使用メモリ 5,376 KB
最終ジャッジ日時 2024-07-21 19:57:51
合計ジャッジ時間 1,162 ms
ジャッジサーバーID
(参考情報)
judge1 / judge2
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 9
権限があれば一括ダウンロードができます

ソースコード

diff #

#include<iostream>
#include<algorithm>
#include<vector>
#include<set>
#include<string>
#include<sstream>
#include<cctype>
#include<functional>
#include<iomanip>
using namespace std;

int main()
{
	int n, k;
	cin >> n >> k;
	if (n == k)cout << "Drew" << endl;
	else if (n < 2 && k - n == 1)cout << "Won" << endl;
	else if (n == 2 && k == 0)cout << "Won" << endl;
	else cout << "Lost" << endl;
	return 0;
}
0