結果

問題 No.264 じゃんけん
ユーザー gedy01221406gedy01221406
提出日時 2019-10-07 16:44:40
言語 C++17
(gcc 12.3.0 + boost 1.83.0)
結果
WA  
実行時間 -
コード長 322 bytes
コンパイル時間 715 ms
コンパイル使用メモリ 68,608 KB
実行使用メモリ 5,376 KB
最終ジャッジ日時 2024-04-21 10:12:57
合計ジャッジ時間 1,108 ms
ジャッジサーバーID
(参考情報)
judge1 / judge4
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 2 ms
5,248 KB
testcase_01 AC 2 ms
5,248 KB
testcase_02 WA -
testcase_03 WA -
testcase_04 AC 2 ms
5,376 KB
testcase_05 AC 2 ms
5,376 KB
testcase_06 AC 1 ms
5,376 KB
testcase_07 WA -
testcase_08 AC 1 ms
5,376 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <iostream>
//#include <numeric>
//#include <vector>
//#include <cstdint>
using namespace std;

int main() {
	int k, n;
	cin >> k >> n;

	if (k == n) {
		cout << "Drew";
	}

	else if ((k == 0 && n == 1) || (k == 1 && n == 2) || (k == 2 && n == 0)) {
		cout << "Won";
	}

	else {
		cout << "Lose";
	}

	return 0;
}
0