結果
| 問題 | No.3090 NimNim |
| コンテスト | |
| ユーザー |
nikoro256
|
| 提出日時 | 2025-04-04 22:54:52 |
| 言語 | PyPy3 (7.3.15) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 345 bytes |
| 記録 | |
| コンパイル時間 | 519 ms |
| コンパイル使用メモリ | 82,152 KB |
| 実行使用メモリ | 102,812 KB |
| 最終ジャッジ日時 | 2025-04-04 22:54:56 |
| 合計ジャッジ時間 | 3,519 ms |
|
ジャッジサーバーID (参考情報) |
judge5 / judge4 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 11 WA * 14 |
ソースコード
N,M=map(int,input().split())
A=list(map(int, input().split()))
B=list(map(int, input().split()))
if A==[1]:
g1=0
for i in range(M):
g1^=B[i]
if g1==0:
print("Second")
else:
print("First")
exit()
g1=0
for i in range(N):
g1^=(A[i]-1)
if g1!=0:
print("First")
else:
print("Second")
exit()
nikoro256