結果
問題 | No.726 Tree Game |
ユーザー |
![]() |
提出日時 | 2018-11-23 11:47:44 |
言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
結果 |
AC
|
実行時間 | 32 ms / 2,000 ms |
コード長 | 316 bytes |
コンパイル時間 | 287 ms |
コンパイル使用メモリ | 12,416 KB |
実行使用メモリ | 10,880 KB |
最終ジャッジ日時 | 2024-12-24 18:04:25 |
合計ジャッジ時間 | 1,969 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 25 |
ソースコード
x,y=input().split() x=int(x) y=int(y) def ans(x,y): x,y=min(x,y),max(x,y) if x==1: if y==1 or y==2: return True elif y%2 ==1: return False else: return True if x==2: return True if x%2 + y%2 ==1: return False else: return True if ans(x,y): print("Second") else: print("First")