結果
| 問題 | No.3090 NimNim | 
| コンテスト | |
| ユーザー |  sasa8uyauya | 
| 提出日時 | 2025-04-05 00:27:51 | 
| 言語 | PyPy3 (7.3.15) | 
| 結果 | 
                                WA
                                 
                             | 
| 実行時間 | - | 
| コード長 | 290 bytes | 
| コンパイル時間 | 366 ms | 
| コンパイル使用メモリ | 82,208 KB | 
| 実行使用メモリ | 104,148 KB | 
| 最終ジャッジ日時 | 2025-04-05 00:27:56 | 
| 合計ジャッジ時間 | 3,876 ms | 
| ジャッジサーバーID (参考情報) | judge6 / judge4 | 
(要ログイン)
| ファイルパターン | 結果 | 
|---|---|
| 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 all(v==1 for v in a): if n%2: print(["Second","First"][gb>0]) else: print(["First","Second"][gb>0]) else: print(["Second","First"][ga>0])
