結果
問題 |
No.1110 好きな歌
|
ユーザー |
|
提出日時 | 2020-07-10 23:44:37 |
言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
結果 |
RE
|
実行時間 | - |
コード長 | 221 bytes |
コンパイル時間 | 130 ms |
コンパイル使用メモリ | 12,672 KB |
実行使用メモリ | 77,072 KB |
最終ジャッジ日時 | 2024-10-11 19:37:50 |
合計ジャッジ時間 | 44,389 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | RE * 3 |
other | RE * 51 |
ソースコード
import numpy as np N,D=map(int,input().split()) A=np.array([(int(input()),i) for i in range(N)],np.int64) A_sort=A.copy() A_sort.sort() ans=np.searchsorted(A_sort,A-D,side='right') print("\n".join(map(str,ans.tolist())))