結果
問題 |
No.726 Tree Game
|
ユーザー |
![]() |
提出日時 | 2018-03-30 00:05:50 |
言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
結果 |
AC
|
実行時間 | 2 ms / 2,000 ms |
コード長 | 327 bytes |
コンパイル時間 | 1,803 ms |
コンパイル使用メモリ | 158,892 KB |
実行使用メモリ | 6,944 KB |
最終ジャッジ日時 | 2024-06-26 00:11:06 |
合計ジャッジ時間 | 2,655 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 25 |
ソースコード
#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; }