結果
| 問題 |
No.99 ジャンピング駒
|
| コンテスト | |
| ユーザー |
motor_radial
|
| 提出日時 | 2019-08-10 01:27:40 |
| 言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
| 結果 |
AC
|
| 実行時間 | 85 ms / 5,000 ms |
| コード長 | 143 bytes |
| コンパイル時間 | 184 ms |
| コンパイル使用メモリ | 12,288 KB |
| 実行使用メモリ | 18,680 KB |
| 最終ジャッジ日時 | 2024-07-19 16:10:04 |
| 合計ジャッジ時間 | 1,193 ms |
|
ジャッジサーバーID (参考情報) |
judge3 / judge4 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 6 |
ソースコード
N=int(input())
X=map(int,input().split())
odd,even=0,0
for i in X:
if i%2==0:
even+=1
else:
odd+=1
print(abs(even-odd))
motor_radial