結果
問題 | No.2757 Pin Game |
ユーザー |
![]() |
提出日時 | 2024-07-08 18:45:56 |
言語 | PyPy3 (7.3.15) |
結果 |
RE
|
実行時間 | - |
コード長 | 206 bytes |
コンパイル時間 | 373 ms |
コンパイル使用メモリ | 82,472 KB |
実行使用メモリ | 120,880 KB |
最終ジャッジ日時 | 2024-07-08 18:45:59 |
合計ジャッジ時間 | 2,353 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge1 |
(要ログイン)
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | RE | - |
testcase_01 | RE | - |
testcase_02 | RE | - |
testcase_03 | RE | - |
testcase_04 | RE | - |
testcase_05 | RE | - |
testcase_06 | RE | - |
testcase_07 | RE | - |
testcase_08 | RE | - |
testcase_09 | RE | - |
testcase_10 | RE | - |
testcase_11 | RE | - |
ソースコード
n,k=map(int,input().split()) xlist=list(map(int,input().split())) while True: if abs(xlist[i+1]-xlist[i])<k: xlist.pop(i+1) xlist.sort() else: i=i+1 if len(xlist)<i: break print(len(xlist))