結果

問題 No.264 じゃんけん
コンテスト
ユーザー fushigu
提出日時 2019-05-17 09:46:30
言語 C++11
(gcc 15.2.0 + boost 1.89.0)
コンパイル:
g++-15 -O2 -lm -std=gnu++11 -Wuninitialized -DONLINE_JUDGE -o a.out _filename_
実行:
./a.out
結果
WA  
実行時間 -
コード長 472 bytes
記録
記録タグの例:
初AC ショートコード 純ショートコード 純主流ショートコード 最速実行時間
コンパイル時間 400 ms
コンパイル使用メモリ 86,508 KB
実行使用メモリ 6,400 KB
最終ジャッジ日時 2026-04-06 03:26:55
合計ジャッジ時間 902 ms
ジャッジサーバーID
(参考情報)
judge3_0 / judge1_1
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 6 WA * 3
権限があれば一括ダウンロードができます

ソースコード

diff #
raw source code

#include <iostream>
#include <string>
#include <vector>
#include <algorithm>
#include <cmath>

using namespace std;
using ll = long long;

int main()
{
	int N, K;
	cin >> N >> K;
	int ans;
	if (N == K) ans = 2;
	else if (N == 2 && K == 1) ans = 0;
	else if (N < K) ans = 0;
	else ans = 1;
	switch (ans)
	{
	case 0:
		cout << "Won" << endl;
		break;
	case 1:
		cout << "Lost" << endl;
		break;
	case 2:
		cout << "Drew" << endl;
		break;
	default:
		break;
	}
	return 0;
}
0