結果
問題 |
No.1110 好きな歌
|
ユーザー |
|
提出日時 | 2020-07-10 21:57:07 |
言語 | PyPy3 (7.3.15) |
結果 |
AC
|
実行時間 | 305 ms / 5,000 ms |
コード長 | 182 bytes |
コンパイル時間 | 155 ms |
コンパイル使用メモリ | 82,176 KB |
実行使用メモリ | 81,548 KB |
最終ジャッジ日時 | 2024-10-11 09:07:33 |
合計ジャッジ時間 | 10,527 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 51 |
ソースコード
import bisect n, d = map(int, input().split()) A = [int(input()) for _ in range(n)] A_sorted = sorted(A) for a in A: idx = bisect.bisect_right(A_sorted, a - d) print(idx)