結果

問題 No.2282 Boxed Nim
コンテスト
ユーザー bp-kenjishioya
提出日時 2023-05-02 11:29:53
言語 Python3
(3.14.7 + numpy 2.5.2 + scipy 1.18.0 + ACL)
コンパイル:
python3 -mpy_compile _filename_
実行:
python3 _filename_
結果
WA  
実行時間 -
コード長 227 bytes
記録
記録タグの例:
初AC ショートコード 純ショートコード 純主流ショートコード 最速実行時間
コンパイル時間 57 ms
コンパイル使用メモリ 14,976 KB
実行使用メモリ 21,736 KB
最終ジャッジ日時 2026-09-27 07:55:03
合計ジャッジ時間 2,541 ms
ジャッジサーバーID
(参考情報)
judge4_1 / judge3_0
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 2 WA * 1
other AC * 8 WA * 9
権限があれば一括ダウンロードができます

ソースコード

diff #
raw source code

def main():
    n = int(input().strip())
    a = list(map(int, input().split()))
    non_zero_count = sum(1 for i in a if i > 1)

    if non_zero_count % 2 == 1:
        print("First")
    else:
        print("Second")

main()
0