結果
| 問題 |
No.264 じゃんけん
|
| コンテスト | |
| ユーザー |
kyave3
|
| 提出日時 | 2015-08-21 19:46:53 |
| 言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
| 結果 |
CE
(最新)
AC
(最初)
|
| 実行時間 | - |
| コード長 | 1,712 bytes |
| コンパイル時間 | 727 ms |
| コンパイル使用メモリ | 81,916 KB |
| 最終ジャッジ日時 | 2024-07-18 11:21:33 |
| 合計ジャッジ時間 | 1,071 ms |
|
ジャッジサーバーID (参考情報) |
judge4 / judge3 |
(要ログイン)
コンパイルエラー時のメッセージ・ソースコードは、提出者また管理者しか表示できないようにしております。(リジャッジ後のコンパイルエラーは公開されます)
ただし、clay言語の場合は開発者のデバッグのため、公開されます。
ただし、clay言語の場合は開発者のデバッグのため、公開されます。
コンパイルメッセージ
main.cpp:30:41: error: ‘numeric_limits’ does not name a type
30 | template <typename T = int> using LIM = numeric_limits<T>;
| ^~~~~~~~~~~~~~
ソースコード
#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;
}
kyave3