結果
| 問題 |
No.726 Tree Game
|
| コンテスト | |
| ユーザー |
treeone
|
| 提出日時 | 2018-03-29 23:49:15 |
| 言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
AC
|
| 実行時間 | 2 ms / 2,000 ms |
| コード長 | 263 bytes |
| コンパイル時間 | 1,684 ms |
| コンパイル使用メモリ | 167,360 KB |
| 実行使用メモリ | 6,944 KB |
| 最終ジャッジ日時 | 2024-06-26 00:11:03 |
| 合計ジャッジ時間 | 2,536 ms |
|
ジャッジサーバーID (参考情報) |
judge1 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 25 |
ソースコード
#include <bits/stdc++.h>
using namespace std;
int main(){
int y, x;
cin >> y >> x;
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