結果
| 問題 | No.2650 [Cherry 6th Tune *] セイジャク |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2024-02-23 22:19:08 |
| 言語 | Python3 (3.14.3 + numpy 2.4.4 + scipy 1.17.1) |
| 結果 |
TLE
|
| 実行時間 | - |
| コード長 | 341 bytes |
| 記録 | |
| コンパイル時間 | 452 ms |
| コンパイル使用メモリ | 20,696 KB |
| 実行使用メモリ | 24,792 KB |
| 最終ジャッジ日時 | 2026-04-15 17:18:54 |
| 合計ジャッジ時間 | 7,260 ms |
|
ジャッジサーバーID (参考情報) |
judge2_0 / judge1_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 |
| other | AC * 2 TLE * 1 -- * 28 |
ソースコード
import bisect
N,A=map(int,input().split())
X=[int(x) for x in input().split()]
Y=sorted(X)
T=int(input())
ans=[-1]*N
for t in range(T):
L,R=map(int,input().split())
lower=bisect.bisect_left(Y,L)
upper=bisect.bisect_right(Y,R)
ans[lower:upper]=[t+1]*(upper-lower)
for i in range(N):
print(ans[bisect.bisect_left(Y,X[i])])