結果
| 問題 | No.3090 NimNim |
| コンテスト | |
| ユーザー |
sasa8uyauya
|
| 提出日時 | 2025-04-05 00:34:47 |
| 言語 | PyPy3 (7.3.15) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 239 bytes |
| 記録 | |
| コンパイル時間 | 359 ms |
| コンパイル使用メモリ | 82,588 KB |
| 実行使用メモリ | 104,204 KB |
| 最終ジャッジ日時 | 2025-04-05 00:34:51 |
| 合計ジャッジ時間 | 3,799 ms |
|
ジャッジサーバーID (参考情報) |
judge6 / judge5 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 |
| other | AC * 24 WA * 2 |
ソースコード
n,m=map(int,input().split()) a=list(map(int,input().split())) ga=0 for v in a: ga^=v b=list(map(int,input().split())) gb=0 for v in b: gb^=v if max(a)==1: print(["Second","First"][(gb>0)^(n%2==0)]) else: print(["Second","First"][ga>0])
sasa8uyauya