結果
問題 |
No.726 Tree Game
|
ユーザー |
![]() |
提出日時 | 2019-08-19 16:44:40 |
言語 | C (gcc 13.3.0) |
結果 |
AC
|
実行時間 | 1 ms / 2,000 ms |
コード長 | 328 bytes |
コンパイル時間 | 243 ms |
コンパイル使用メモリ | 28,416 KB |
実行使用メモリ | 6,820 KB |
最終ジャッジ日時 | 2024-10-04 14:28:13 |
合計ジャッジ時間 | 1,136 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 25 |
ソースコード
// yukicoder: No.726 Tree Game // bal4u 2019.8.19 #include <stdio.h> int main() { int x, y, f; scanf("%d%d", &x, &y); if (x > y) f = x, x = y, y = f; f = 0; if (x == 1) { if (y >= 3 && y & 1) f = 1; } else if (x > 2 && ((x & 1) | (y & 1)) && ((x & 1) & (y & 1)) == 0) f = 1; puts(f? "First": "Second"); return 0; }