結果
問題 |
No.726 Tree Game
|
ユーザー |
![]() |
提出日時 | 2018-08-28 08:57:29 |
言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 701 bytes |
コンパイル時間 | 863 ms |
コンパイル使用メモリ | 89,360 KB |
実行使用メモリ | 6,948 KB |
最終ジャッジ日時 | 2024-07-07 05:21:26 |
合計ジャッジ時間 | 1,581 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 23 WA * 2 |
ソースコード
#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 (y < 2) { if (x < 2) { hoge(0); } else { hoge(1); } } if (x < 2) { hoge(1); } hoge(0); }