結果

問題 No.1471 Sort Queries
ユーザー Super SolenoidSuper Solenoid
提出日時 2021-05-03 00:44:32
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
TLE  
実行時間 -
コード長 198 bytes
コンパイル時間 99 ms
コンパイル使用メモリ 10,624 KB
実行使用メモリ 8,448 KB
最終ジャッジ日時 2023-09-28 15:14:15
合計ジャッジ時間 28,551 ms
ジャッジサーバーID
(参考情報)
judge12 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 16 ms
7,912 KB
testcase_01 AC 15 ms
7,800 KB
testcase_02 AC 16 ms
7,804 KB
testcase_03 AC 16 ms
7,904 KB
testcase_04 AC 15 ms
7,796 KB
testcase_05 AC 15 ms
7,796 KB
testcase_06 AC 15 ms
7,768 KB
testcase_07 AC 16 ms
7,904 KB
testcase_08 AC 16 ms
7,864 KB
testcase_09 AC 16 ms
7,796 KB
testcase_10 AC 15 ms
7,900 KB
testcase_11 AC 15 ms
7,744 KB
testcase_12 AC 16 ms
7,800 KB
testcase_13 AC 433 ms
8,136 KB
testcase_14 AC 359 ms
8,180 KB
testcase_15 AC 676 ms
8,296 KB
testcase_16 AC 125 ms
8,212 KB
testcase_17 AC 301 ms
8,088 KB
testcase_18 AC 198 ms
7,912 KB
testcase_19 AC 170 ms
8,152 KB
testcase_20 AC 690 ms
8,372 KB
testcase_21 AC 325 ms
8,240 KB
testcase_22 AC 259 ms
8,168 KB
testcase_23 AC 1,556 ms
8,312 KB
testcase_24 AC 1,538 ms
8,200 KB
testcase_25 TLE -
testcase_26 AC 1,344 ms
8,244 KB
testcase_27 TLE -
testcase_28 TLE -
testcase_29 AC 1,329 ms
8,180 KB
testcase_30 AC 1,467 ms
8,152 KB
testcase_31 TLE -
testcase_32 AC 1,939 ms
8,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()
Y = []

for i in range(Q):
    l, r, x = map(int, input().split())
    s = ''.join(sorted(S[(l-1):r]))
    Y.append(s[x-1])
    
for i in Y:
    print(i)
0