結果
| 問題 | No.99 ジャンピング駒 |
| コンテスト | |
| ユーザー |
FVRChan
|
| 提出日時 | 2018-05-03 12:10:57 |
| 言語 | Python3 (3.14.3 + numpy 2.4.4 + scipy 1.17.1) |
| 結果 |
TLE
|
| 実行時間 | - |
| コード長 | 438 bytes |
| 記録 | |
| コンパイル時間 | 345 ms |
| コンパイル使用メモリ | 20,696 KB |
| 実行使用メモリ | 31,600 KB |
| 最終ジャッジ日時 | 2026-03-16 08:20:42 |
| 合計ジャッジ時間 | 43,310 ms |
|
ジャッジサーバーID (参考情報) |
judge1_0 / judge3_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | TLE * 6 |
ソースコード
n=input()
x=sorted(list(map(int,input().split(" "))))
while True:
try:
f=False
for i in range(len(x)):
x1,x2=x[i],x[i+1]
if (x1+x2)%2==0 or (x1-1 in x and x2+1 in x):
continue
x.remove(x1)
x.remove(x2)
f=True
if f==False:
break
except IndexError:
if len(x)==1:
break
continue
print(len(x))
FVRChan