結果
問題 | No.2282 Boxed Nim |
ユーザー | yabit |
提出日時 | 2023-06-30 16:05:13 |
言語 | PyPy3 (7.3.15) |
結果 |
WA
|
実行時間 | - |
コード長 | 245 bytes |
コンパイル時間 | 552 ms |
コンパイル使用メモリ | 87,112 KB |
実行使用メモリ | 91,688 KB |
最終ジャッジ日時 | 2023-09-21 09:41:49 |
合計ジャッジ時間 | 4,552 ms |
ジャッジサーバーID (参考情報) |
judge13 / judge11 |
(要ログイン)
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | AC | 72 ms
71,464 KB |
testcase_01 | AC | 70 ms
71,364 KB |
testcase_02 | AC | 69 ms
71,284 KB |
testcase_03 | WA | - |
testcase_04 | WA | - |
testcase_05 | AC | 70 ms
71,384 KB |
testcase_06 | WA | - |
testcase_07 | AC | 68 ms
71,584 KB |
testcase_08 | AC | 68 ms
71,344 KB |
testcase_09 | WA | - |
testcase_10 | WA | - |
testcase_11 | WA | - |
testcase_12 | WA | - |
testcase_13 | WA | - |
testcase_14 | AC | 89 ms
89,316 KB |
testcase_15 | AC | 89 ms
89,224 KB |
testcase_16 | WA | - |
testcase_17 | WA | - |
testcase_18 | WA | - |
testcase_19 | AC | 92 ms
91,688 KB |
ソースコード
N = int(input()) A = list(map(int, input().split())) xor = 0 notzero = 0 for a in A: xor ^= a if a != 0: notzero += 1 if xor > 0: print('First') elif xor == 0 and notzero % 2 == 0: print('Second') else: print('First')