結果
| 問題 |
No.99 ジャンピング駒
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2025-08-23 23:56:41 |
| 言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 308 bytes |
| コンパイル時間 | 177 ms |
| コンパイル使用メモリ | 12,288 KB |
| 実行使用メモリ | 21,444 KB |
| 最終ジャッジ日時 | 2025-08-23 23:56:49 |
| 合計ジャッジ時間 | 7,741 ms |
|
ジャッジサーバーID (参考情報) |
judge4 / judge5 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 2 WA * 4 |
ソースコード
n = int(input())
x = sorted(list(map(int, input().split())))
while True:
if not x:
break
ok = False
for i in range(1, len(x)):
if x[i] - x[i - 1] % 2:
x.pop(i)
x.pop(i - 1)
ok = True
break
if not ok:
break
print(len(x))