結果

問題 No.1471 Sort Queries
ユーザー kept1994kept1994
提出日時 2021-09-01 00:25:40
言語 PyPy3
(7.3.15)
結果
TLE  
実行時間 -
コード長 297 bytes
コンパイル時間 255 ms
コンパイル使用メモリ 86,856 KB
実行使用メモリ 80,012 KB
最終ジャッジ日時 2023-08-17 15:17:05
合計ジャッジ時間 21,728 ms
ジャッジサーバーID
(参考情報)
judge11 / judge15
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 70 ms
71,340 KB
testcase_01 AC 71 ms
71,388 KB
testcase_02 AC 76 ms
71,444 KB
testcase_03 AC 71 ms
71,372 KB
testcase_04 AC 74 ms
71,268 KB
testcase_05 AC 71 ms
71,424 KB
testcase_06 AC 70 ms
71,312 KB
testcase_07 AC 71 ms
71,016 KB
testcase_08 AC 72 ms
71,396 KB
testcase_09 AC 73 ms
71,432 KB
testcase_10 AC 72 ms
71,268 KB
testcase_11 AC 73 ms
71,432 KB
testcase_12 AC 73 ms
71,248 KB
testcase_13 AC 365 ms
77,896 KB
testcase_14 AC 323 ms
77,360 KB
testcase_15 AC 513 ms
77,804 KB
testcase_16 AC 180 ms
77,416 KB
testcase_17 AC 287 ms
77,768 KB
testcase_18 AC 223 ms
77,552 KB
testcase_19 AC 205 ms
77,432 KB
testcase_20 AC 520 ms
77,708 KB
testcase_21 AC 300 ms
77,684 KB
testcase_22 AC 259 ms
77,412 KB
testcase_23 AC 1,061 ms
78,376 KB
testcase_24 AC 1,039 ms
78,012 KB
testcase_25 AC 1,629 ms
78,484 KB
testcase_26 AC 905 ms
78,040 KB
testcase_27 AC 1,501 ms
79,144 KB
testcase_28 AC 1,483 ms
80,012 KB
testcase_29 AC 904 ms
77,928 KB
testcase_30 AC 993 ms
78,608 KB
testcase_31 AC 1,531 ms
78,320 KB
testcase_32 AC 1,274 ms
78,304 KB
testcase_33 TLE -
testcase_34 -- -
testcase_35 -- -
testcase_36 -- -
testcase_37 -- -
testcase_38 -- -
testcase_39 -- -
権限があれば一括ダウンロードができます

ソースコード

diff #

#!/usr/bin/env python3
import sys

def main():
    N, Q = map(int,input().split())
    S = [ord(i) for i in list(input())]
    for _ in range(Q):
        L, R, X = map(lambda i : int(i) - 1,input().split())
        print(chr(sorted(S[L:(R + 1)])[X]))
        
if __name__ == '__main__':
    main()
0