結果
問題 | No.99 ジャンピング駒 |
ユーザー | kohei2019 |
提出日時 | 2021-06-02 21:02:16 |
言語 | PyPy3 (7.3.15) |
結果 |
AC
|
実行時間 | 69 ms / 5,000 ms |
コード長 | 182 bytes |
コンパイル時間 | 230 ms |
コンパイル使用メモリ | 82,320 KB |
実行使用メモリ | 85,464 KB |
最終ジャッジ日時 | 2024-04-27 14:07:29 |
合計ジャッジ時間 | 1,716 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge1 |
(要ログイン)
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | AC | 68 ms
85,048 KB |
testcase_01 | AC | 69 ms
84,160 KB |
testcase_02 | AC | 68 ms
83,896 KB |
testcase_03 | AC | 67 ms
85,464 KB |
testcase_04 | AC | 65 ms
83,620 KB |
testcase_05 | AC | 66 ms
84,204 KB |
ソースコード
N = int(input()) lsX = list(map(int,input().split())) cnto = 0 cnte = 0 for i in range(N): if lsX[i] % 2 == 0: cnto += 1 else: cnte += 1 print(abs(cnto-cnte))