結果

問題 No.1471 Sort Queries
ユーザー GrayCoderGrayCoder
提出日時 2021-04-09 23:06:10
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
TLE  
実行時間 -
コード長 263 bytes
コンパイル時間 97 ms
コンパイル使用メモリ 10,756 KB
実行使用メモリ 15,032 KB
最終ジャッジ日時 2023-09-07 12:49:54
合計ジャッジ時間 23,998 ms
ジャッジサーバーID
(参考情報)
judge11 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 15 ms
15,032 KB
testcase_01 AC 14 ms
7,816 KB
testcase_02 AC 16 ms
7,936 KB
testcase_03 AC 17 ms
7,852 KB
testcase_04 AC 16 ms
7,964 KB
testcase_05 AC 15 ms
7,796 KB
testcase_06 AC 15 ms
7,784 KB
testcase_07 AC 15 ms
7,840 KB
testcase_08 AC 15 ms
7,828 KB
testcase_09 AC 14 ms
7,784 KB
testcase_10 AC 15 ms
7,920 KB
testcase_11 AC 15 ms
7,924 KB
testcase_12 AC 15 ms
7,788 KB
testcase_13 AC 384 ms
8,308 KB
testcase_14 AC 315 ms
8,204 KB
testcase_15 AC 609 ms
8,444 KB
testcase_16 AC 105 ms
8,220 KB
testcase_17 AC 266 ms
8,116 KB
testcase_18 AC 175 ms
8,260 KB
testcase_19 AC 151 ms
8,216 KB
testcase_20 AC 610 ms
8,296 KB
testcase_21 AC 280 ms
8,324 KB
testcase_22 AC 226 ms
8,364 KB
testcase_23 AC 1,360 ms
8,408 KB
testcase_24 AC 1,317 ms
8,408 KB
testcase_25 TLE -
testcase_26 AC 1,133 ms
8,336 KB
testcase_27 TLE -
testcase_28 TLE -
testcase_29 AC 1,170 ms
8,360 KB
testcase_30 AC 1,280 ms
8,444 KB
testcase_31 TLE -
testcase_32 AC 1,694 ms
8,332 KB
testcase_33 TLE -
testcase_34 -- -
testcase_35 -- -
testcase_36 -- -
testcase_37 -- -
testcase_38 -- -
testcase_39 -- -
権限があれば一括ダウンロードができます

ソースコード

diff #

from sys import stdin


def main():
    input = lambda: stdin.readline()[:-1]
    N, Q = map(int, input().split())
    S = input()
    for _ in [0] * Q:
        L, R, X = map(int, input().split())
        s = sorted(S[L - 1 : R])
        print(s[X - 1])


main()
0