結果

問題 No.1471 Sort Queries
ユーザー shigeokushigeoku
提出日時 2021-04-09 21:48:26
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
TLE  
実行時間 -
コード長 165 bytes
コンパイル時間 552 ms
コンパイル使用メモリ 10,660 KB
実行使用メモリ 10,348 KB
最終ジャッジ日時 2023-09-07 10:47:58
合計ジャッジ時間 26,109 ms
ジャッジサーバーID
(参考情報)
judge13 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 16 ms
7,804 KB
testcase_01 AC 16 ms
7,808 KB
testcase_02 AC 16 ms
7,928 KB
testcase_03 AC 16 ms
7,844 KB
testcase_04 AC 15 ms
7,876 KB
testcase_05 AC 15 ms
7,868 KB
testcase_06 AC 16 ms
7,736 KB
testcase_07 AC 15 ms
7,844 KB
testcase_08 AC 16 ms
7,836 KB
testcase_09 AC 15 ms
7,752 KB
testcase_10 AC 15 ms
7,796 KB
testcase_11 AC 16 ms
7,872 KB
testcase_12 AC 16 ms
7,840 KB
testcase_13 AC 402 ms
8,844 KB
testcase_14 AC 338 ms
8,692 KB
testcase_15 AC 635 ms
9,056 KB
testcase_16 AC 118 ms
8,792 KB
testcase_17 AC 283 ms
8,680 KB
testcase_18 AC 186 ms
8,356 KB
testcase_19 AC 159 ms
8,676 KB
testcase_20 AC 644 ms
9,084 KB
testcase_21 AC 300 ms
8,704 KB
testcase_22 AC 245 ms
8,584 KB
testcase_23 AC 1,462 ms
9,404 KB
testcase_24 AC 1,441 ms
9,484 KB
testcase_25 TLE -
testcase_26 AC 1,244 ms
9,544 KB
testcase_27 TLE -
testcase_28 TLE -
testcase_29 AC 1,239 ms
9,580 KB
testcase_30 AC 1,370 ms
9,488 KB
testcase_31 TLE -
testcase_32 AC 1,798 ms
10,348 KB
testcase_33 TLE -
testcase_34 -- -
testcase_35 -- -
testcase_36 -- -
testcase_37 -- -
testcase_38 -- -
testcase_39 -- -
権限があれば一括ダウンロードができます

ソースコード

diff #

N, Q = map(int, input().split())
S = input()
Qn = [list(map(int, input().split())) for _ in range(Q)]


for l, r, i in Qn:
    s = S[l-1:r]
    print(sorted(s)[i-1])
0