結果

問題 No.264 じゃんけん
ユーザー masa
提出日時 2015-08-07 22:25:01
言語 C++11(廃止可能性あり)
(gcc 13.3.0)
結果
AC  
実行時間 2 ms / 5,000 ms
コード長 357 bytes
コンパイル時間 440 ms
コンパイル使用メモリ 58,684 KB
実行使用メモリ 6,944 KB
最終ジャッジ日時 2024-07-18 05:08:48
合計ジャッジ時間 793 ms
ジャッジサーバーID
(参考情報)
judge5 / judge3
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 9
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <iostream>
#include <cstdio>
#include <vector>
#include <algorithm>
#include <utility>
#include <string>

using namespace std;

int main() {
	int n, k;

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