結果

問題 No.2044 Infinite Nim
ユーザー ntudantuda
提出日時 2022-08-24 22:46:46
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 59 ms / 2,000 ms
コード長 250 bytes
コンパイル時間 186 ms
コンパイル使用メモリ 81,920 KB
実行使用メモリ 83,572 KB
最終ジャッジ日時 2024-04-20 11:08:21
合計ジャッジ時間 3,420 ms
ジャッジサーバーID
(参考情報)
judge1 / judge3
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 36 ms
52,304 KB
testcase_01 AC 34 ms
52,064 KB
testcase_02 AC 33 ms
52,460 KB
testcase_03 AC 33 ms
52,416 KB
testcase_04 AC 34 ms
52,460 KB
testcase_05 AC 33 ms
52,640 KB
testcase_06 AC 33 ms
52,576 KB
testcase_07 AC 34 ms
52,572 KB
testcase_08 AC 33 ms
52,704 KB
testcase_09 AC 32 ms
53,104 KB
testcase_10 AC 37 ms
52,952 KB
testcase_11 AC 32 ms
52,396 KB
testcase_12 AC 33 ms
52,356 KB
testcase_13 AC 52 ms
71,496 KB
testcase_14 AC 43 ms
67,064 KB
testcase_15 AC 42 ms
65,516 KB
testcase_16 AC 44 ms
66,904 KB
testcase_17 AC 51 ms
75,732 KB
testcase_18 AC 43 ms
65,864 KB
testcase_19 AC 42 ms
67,024 KB
testcase_20 AC 48 ms
70,780 KB
testcase_21 AC 54 ms
78,364 KB
testcase_22 AC 51 ms
72,352 KB
testcase_23 AC 46 ms
68,716 KB
testcase_24 AC 56 ms
75,876 KB
testcase_25 AC 43 ms
69,272 KB
testcase_26 AC 49 ms
73,688 KB
testcase_27 AC 42 ms
66,912 KB
testcase_28 AC 56 ms
82,272 KB
testcase_29 AC 48 ms
70,184 KB
testcase_30 AC 51 ms
76,212 KB
testcase_31 AC 56 ms
83,080 KB
testcase_32 AC 58 ms
82,252 KB
testcase_33 AC 59 ms
82,232 KB
testcase_34 AC 52 ms
78,732 KB
testcase_35 AC 58 ms
83,572 KB
testcase_36 AC 34 ms
52,688 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

N = int(input())
A = list(map(int, input().split()))
tmp = 0
cnt = 0
for a in A:
    if a > 0:
        tmp ^= a
    else:
        cnt += 1
if cnt & 1:
    print("First")
else:
    if tmp == 0:
        print("Second")
    else:
        print("First")
0