結果
| 問題 | No.726 Tree Game |
| コンテスト | |
| ユーザー |
treeone
|
| 提出日時 | 2018-03-30 00:05:50 |
| 言語 | C++11 (gcc 15.3.0 + boost 1.92.0) |
| 結果 |
AC
不安定
|
| 実行時間 | 1 ms / 2,000 ms |
| + 861µs | |
| コード長 | 327 bytes |
| 記録 | |
| コンパイル時間 | 1,120 ms |
| コンパイル使用メモリ | 178,564 KB |
| 実行使用メモリ | 9,924 KB |
| 最終ジャッジ日時 | 2026-11-03 10:19:16 |
| 合計ジャッジ時間 | 2,835 ms |
|
ジャッジサーバーID (参考情報) |
judge3_0 / judge4_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 27 |
ソースコード
#include <bits/stdc++.h>
using namespace std;
int main(){
int y, x;
cin >> y >> x;
assert(1 <= y && y <= 1e9);
assert(1 <= x && x <= 1e9);
bool ans = (y % 2) ^ (x % 2);
if(y == 1) ans ^= 1;
if(x == 1) ans ^= 1;
if(x == 2 || y == 2) ans = false;
cout << (ans ? "First" : "Second") << endl;
}
treeone