結果
| 問題 | No.1110 好きな歌 |
| コンテスト | |
| ユーザー |
trineutron
|
| 提出日時 | 2019-10-23 10:01:04 |
| 言語 | PyPy3 (8.0.0 + ACL) |
| 結果 |
AC
不安定
|
| 実行時間 | 553 ms / 5,000 ms |
| + 899µs | |
| コード長 | 238 bytes |
| 記録 | |
| コンパイル時間 | 284 ms |
| コンパイル使用メモリ | 96,236 KB |
| 実行使用メモリ | 94,592 KB |
| 最終ジャッジ日時 | 2026-08-26 02:34:30 |
| 合計ジャッジ時間 | 20,128 ms |
|
ジャッジサーバーID (参考情報) |
judge1_0 / judge2_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 51 |
ソースコード
import bisect
n, d = map(int, input().split())
a = [(int(input()), i) for i in range(n)]
a.sort()
ans = [0] * n
for i in range(n):
ans[a[i][1]] = bisect.bisect_left(a, (a[i][0] - d, 2000000000))
for i in range(n):
print(ans[i])
trineutron