結果

問題 No.1110 好きな歌
ユーザー futago0118
提出日時 2020-07-10 22:45:26
言語 Python3
(3.13.1 + numpy 2.2.1 + scipy 1.14.1)
結果
TLE  
実行時間 -
コード長 275 bytes
コンパイル時間 576 ms
コンパイル使用メモリ 12,672 KB
実行使用メモリ 22,308 KB
最終ジャッジ日時 2024-10-11 13:21:19
合計ジャッジ時間 9,577 ms
ジャッジサーバーID
(参考情報)
judge2 / judge3
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 21 TLE * 1 -- * 29
権限があれば一括ダウンロードができます

ソースコード

diff #

N,D = map(int,input().split())

S = []
for i in range(N):
    s = int(input())
    S.append(s)

#print(S)

for i in range(len(S)):
    cnt = 0
    for j in range(len(S)):
        if i != j:
            if S[i] - S[j] >= D:
                cnt += 1
    print(cnt)
            
0