結果

問題 No.1471 Sort Queries
ユーザー TnaTna
提出日時 2022-08-10 14:49:23
言語 PyPy3
(7.3.15)
結果
TLE  
実行時間 -
コード長 325 bytes
コンパイル時間 1,457 ms
コンパイル使用メモリ 81,536 KB
実行使用メモリ 104,180 KB
最終ジャッジ日時 2023-10-21 00:54:01
合計ジャッジ時間 29,407 ms
ジャッジサーバーID
(参考情報)
judge10 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 39 ms
53,476 KB
testcase_01 AC 39 ms
53,476 KB
testcase_02 AC 38 ms
53,476 KB
testcase_03 AC 40 ms
53,476 KB
testcase_04 AC 40 ms
53,476 KB
testcase_05 AC 40 ms
53,476 KB
testcase_06 AC 39 ms
53,476 KB
testcase_07 AC 40 ms
53,476 KB
testcase_08 AC 40 ms
53,476 KB
testcase_09 AC 39 ms
53,476 KB
testcase_10 AC 39 ms
53,476 KB
testcase_11 AC 41 ms
53,476 KB
testcase_12 AC 40 ms
53,476 KB
testcase_13 AC 488 ms
77,040 KB
testcase_14 AC 419 ms
77,116 KB
testcase_15 AC 724 ms
78,180 KB
testcase_16 AC 185 ms
76,484 KB
testcase_17 AC 362 ms
76,740 KB
testcase_18 AC 261 ms
76,568 KB
testcase_19 AC 229 ms
76,560 KB
testcase_20 AC 734 ms
77,700 KB
testcase_21 AC 384 ms
76,584 KB
testcase_22 AC 324 ms
76,668 KB
testcase_23 AC 1,605 ms
80,908 KB
testcase_24 AC 1,587 ms
80,912 KB
testcase_25 TLE -
testcase_26 AC 1,370 ms
79,972 KB
testcase_27 TLE -
testcase_28 TLE -
testcase_29 AC 1,367 ms
80,044 KB
testcase_30 AC 1,506 ms
81,020 KB
testcase_31 TLE -
testcase_32 AC 1,953 ms
81,776 KB
testcase_33 TLE -
testcase_34 -- -
testcase_35 -- -
testcase_36 -- -
testcase_37 -- -
testcase_38 -- -
testcase_39 -- -
権限があれば一括ダウンロードができます

ソースコード

diff #

N, Q = [int(x) for x in input().split()]
S = input()
queries = [[int(x) for x in input().split()] for _ in range(Q)]
# print(queries)
for x in queries:
    string_data = S[x[0]-1:x[1]]

    # print(string_data)
    # print(list(string_data))
    # print(sorted(list(string_data)))
    print(sorted(list(string_data))[x[2]-1])
0