結果

問題 No.1110 好きな歌
ユーザー now4estnow4est
提出日時 2020-07-11 11:00:09
言語 PyPy3
(7.3.13)
結果
WA  
実行時間 -
コード長 337 bytes
コンパイル時間 311 ms
コンパイル使用メモリ 87,004 KB
実行使用メモリ 287,340 KB
最終ジャッジ日時 2023-08-02 21:22:48
合計ジャッジ時間 11,242 ms
ジャッジサーバーID
(参考情報)
judge13 / judge14
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 68 ms
71,408 KB
testcase_01 AC 69 ms
71,216 KB
testcase_02 AC 67 ms
71,388 KB
testcase_03 AC 66 ms
71,184 KB
testcase_04 AC 66 ms
71,268 KB
testcase_05 AC 67 ms
71,008 KB
testcase_06 AC 66 ms
71,232 KB
testcase_07 AC 65 ms
71,372 KB
testcase_08 AC 66 ms
71,364 KB
testcase_09 AC 67 ms
71,352 KB
testcase_10 WA -
testcase_11 WA -
testcase_12 AC 65 ms
71,216 KB
testcase_13 AC 65 ms
71,216 KB
testcase_14 AC 73 ms
75,460 KB
testcase_15 AC 70 ms
75,612 KB
testcase_16 WA -
testcase_17 WA -
testcase_18 AC 67 ms
71,376 KB
testcase_19 AC 72 ms
76,036 KB
testcase_20 WA -
testcase_21 AC 73 ms
76,420 KB
testcase_22 AC 78 ms
76,692 KB
testcase_23 WA -
testcase_24 TLE -
testcase_25 -- -
testcase_26 -- -
testcase_27 -- -
testcase_28 -- -
testcase_29 -- -
testcase_30 -- -
testcase_31 -- -
testcase_32 -- -
testcase_33 -- -
testcase_34 -- -
testcase_35 -- -
testcase_36 -- -
testcase_37 -- -
testcase_38 -- -
testcase_39 -- -
testcase_40 -- -
testcase_41 -- -
testcase_42 -- -
testcase_43 -- -
testcase_44 -- -
testcase_45 -- -
testcase_46 -- -
testcase_47 -- -
testcase_48 -- -
testcase_49 -- -
testcase_50 -- -
testcase_51 -- -
testcase_52 -- -
testcase_53 -- -
権限があれば一括ダウンロードができます

ソースコード

diff #

import sys
_,D,*A = map(int,open(0).read().split())

if len(A) < 2:
    print(0)
    sys.exit()

A_sorted = sorted(A)

for a in A:
    if a <= D:
        print(0)
        continue
    A_part = A_sorted[:A_sorted.index(a)][::-1]
    for i,p in enumerate(A_part):
        if a - p >= D:
            print(len(A_part[i:]))
            break
0