結果
| 問題 | No.3090 NimNim | 
| コンテスト | |
| ユーザー |  sasa8uyauya | 
| 提出日時 | 2025-04-05 00:20:11 | 
| 言語 | PyPy3 (7.3.15) | 
| 結果 | 
                                WA
                                 
                             | 
| 実行時間 | - | 
| コード長 | 274 bytes | 
| コンパイル時間 | 712 ms | 
| コンパイル使用メモリ | 82,476 KB | 
| 実行使用メモリ | 104,352 KB | 
| 最終ジャッジ日時 | 2025-04-05 00:20:15 | 
| 合計ジャッジ時間 | 4,017 ms | 
| ジャッジサーバーID (参考情報) | judge2 / judge5 | 
(要ログイン)
| ファイルパターン | 結果 | 
|---|---|
| sample | AC * 1 WA * 1 | 
| other | AC * 15 WA * 11 | 
ソースコード
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(["Second","First"][gb==0])
else:
	print("First")
            
            
            
        