結果

問題 No.264 じゃんけん
ユーザー kyave3kyave3
提出日時 2015-08-21 19:46:53
言語 C++11
(gcc 11.4.0)
結果
AC  
実行時間 2 ms / 5,000 ms
コード長 1,712 bytes
コンパイル時間 621 ms
コンパイル使用メモリ 86,168 KB
実行使用メモリ 4,504 KB
最終ジャッジ日時 2023-09-25 14:27:09
合計ジャッジ時間 1,348 ms
ジャッジサーバーID
(参考情報)
judge12 / judge14
このコードへのチャレンジ(β)

テストケース

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

ソースコード

diff #

#include <vector>
#include <map>
#include <climits>
#include <set>
#include <queue>
#include <algorithm>
#include <functional>
#include <numeric>
#include <utility>
#include <sstream>
#include <iostream>
#include <iomanip>
#include <cstdio>
#include <cmath>
#include <cstdlib>
#include <cctype>
#include <string>
#include <bitset>
#include <cstring>
#include <list>
#include <iterator>

using namespace std;
using LL = long long;
using ULL = unsigned long long;
using VI = vector<int>; using VVI = vector<VI>; using VS = vector<string>;
using PII = pair<int, int>; using VPII = vector<pair<int, int>>;
template <typename T = int> using VT = vector<T>;
template <typename T = int> using VVT = VT<VT<T>>;
template <typename T = int> using LIM = numeric_limits<T>;

template <typename T> inline T fromString(const string &s) {T res; istringstream iss( s ); iss >> res; return res;};
template <typename T> inline string toString(const T &a) {ostringstream oss; oss << a; return oss.str();};

#define REP(i, x, n) for(int i = x; i < (int)(n); i++)
#define rep(i, n) REP(i, 0, n)
#define FOR(e, c) for (auto &e : c )
#define all(x) (x).begin(), (x).end()
#define mp(a, b) make_pair(a, b)
#define INF (1L << 30)
#define fst first
#define snd second
#define DUMP(x) cerr << #x << " = " << (x) << endl

const int dy[] = { 1, 0, -1, 0 };
const int dx[] = { 0, 1, 0, -1 };

int main() {
	ios_base::sync_with_stdio(false);
	cin.tie(nullptr);

	int n, k;
	cin >> n >> k;
	int state = -1;
	if (n == k) {
		state = 0;
	} else {
		if (n == 0 and k == 1) state = 1;
		if (n == 1 and k == 2) state = 1;
		if (n == 2 and k == 0) state = 1;
	}

	cout << ((state == 1) ? "Won" : (state == 0 ? "Drew" : "Lost")) << endl;
	return 0;
}
0