結果
問題 | No.2650 [Cherry 6th Tune *] セイジャク |
ユーザー | Ekiben542 |
提出日時 | 2024-02-23 22:16:39 |
言語 | PyPy3 (7.3.15) |
結果 |
WA
|
実行時間 | - |
コード長 | 403 bytes |
コンパイル時間 | 133 ms |
コンパイル使用メモリ | 81,700 KB |
実行使用メモリ | 98,984 KB |
最終ジャッジ日時 | 2024-02-23 22:16:59 |
合計ジャッジ時間 | 14,639 ms |
ジャッジサーバーID (参考情報) |
judge12 / judge16 |
(要ログイン)
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | AC | 37 ms
53,460 KB |
testcase_01 | AC | 34 ms
53,460 KB |
testcase_02 | WA | - |
testcase_03 | WA | - |
testcase_04 | TLE | - |
testcase_05 | WA | - |
testcase_06 | WA | - |
testcase_07 | WA | - |
testcase_08 | WA | - |
testcase_09 | TLE | - |
testcase_10 | -- | - |
testcase_11 | -- | - |
testcase_12 | -- | - |
testcase_13 | -- | - |
testcase_14 | -- | - |
testcase_15 | -- | - |
testcase_16 | -- | - |
testcase_17 | -- | - |
testcase_18 | -- | - |
testcase_19 | -- | - |
testcase_20 | -- | - |
testcase_21 | -- | - |
testcase_22 | -- | - |
testcase_23 | -- | - |
testcase_24 | -- | - |
testcase_25 | -- | - |
testcase_26 | -- | - |
testcase_27 | -- | - |
testcase_28 | -- | - |
testcase_29 | -- | - |
testcase_30 | -- | - |
testcase_31 | -- | - |
testcase_32 | -- | - |
ソースコード
import bisect N, A = map(int, input().split()) X = sorted(list(map(int, input().split()))) T = int(input()) LR = [list(map(int, input().split())) for _ in range(T)] last_heard = [-1]*N for t in range(T): L, R = LR[t] start = bisect.bisect_left(X, L) end = bisect.bisect_right(X, R) for i in range(start, end): last_heard[i] = t+1 for i in range(N): print(last_heard[i])