結果
| 問題 |
No.726 Tree Game
|
| コンテスト | |
| ユーザー |
xuzijian629
|
| 提出日時 | 2018-08-28 09:05:38 |
| 言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
| 結果 |
AC
|
| 実行時間 | 2 ms / 2,000 ms |
| コード長 | 787 bytes |
| コンパイル時間 | 470 ms |
| コンパイル使用メモリ | 80,944 KB |
| 実行使用メモリ | 6,948 KB |
| 最終ジャッジ日時 | 2024-07-07 05:44:48 |
| 合計ジャッジ時間 | 1,144 ms |
|
ジャッジサーバーID (参考情報) |
judge5 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 25 |
ソースコード
#include <iostream>
#include <vector>
#include <algorithm>
#include <cmath>
#include <stack>
#include <queue>
#include <map>
#include <unordered_map>
#include <cassert>
using namespace std;
using i64 = int64_t;
constexpr i64 mod = 1e9 + 7;
using vi = vector<i64>;
using vvi = vector<vi>;
using ii = pair<i64, i64>;
using vii = vector<ii>;
int y, x;
void hoge(int i) {
if ((x + y) % 2 == i) {
cout << "Second" << endl;
} else {
cout << "First" << endl;
}
exit(0);
}
int main() {
cin >> y >> x;
if (x == 2 || y == 2) {
cout << "Second" << endl;
return 0;
}
if (y < 2) {
if (x < 2) {
hoge(0);
} else {
hoge(1);
}
}
if (x < 2) {
hoge(1);
}
hoge(0);
}
xuzijian629