結果
問題 |
No.99 ジャンピング駒
|
ユーザー |
![]() |
提出日時 | 2025-04-15 21:28:01 |
言語 | PyPy3 (7.3.15) |
結果 |
AC
|
実行時間 | 73 ms / 5,000 ms |
コード長 | 170 bytes |
コンパイル時間 | 389 ms |
コンパイル使用メモリ | 82,716 KB |
実行使用メモリ | 85,016 KB |
最終ジャッジ日時 | 2025-04-15 21:31:13 |
合計ジャッジ時間 | 1,428 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 6 |
ソースコード
n = int(input()) xs = list(map(int, input().split())) even = 0 odd = 0 for x in xs: if x % 2 == 0: even += 1 else: odd += 1 print(abs(even - odd))