結果

問題 No.99 ジャンピング駒
ユーザー ssmkzkssmkzk
提出日時 2018-07-19 15:08:22
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
WA  
実行時間 -
コード長 310 bytes
コンパイル時間 149 ms
コンパイル使用メモリ 10,744 KB
実行使用メモリ 19,028 KB
最終ジャッジ日時 2023-08-25 10:55:33
合計ジャッジ時間 1,496 ms
ジャッジサーバーID
(参考情報)
judge15 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 63 ms
18,960 KB
testcase_01 AC 47 ms
18,756 KB
testcase_02 WA -
testcase_03 WA -
testcase_04 WA -
testcase_05 WA -
権限があれば一括ダウンロードができます

ソースコード

diff #

N = int(input())
l = list(map(int, input().split()))

if N % 2 == 0:
    count_odd = 0
    count_even = 0
    for li in l:
        if li % 2 == 0:
            count_even += 1
        else:
            count_odd += 1
    if count_even == count_odd:
        print(0)
    else:
        print(1)
else:
    print(1)
0