結果
問題 |
No.1471 Sort Queries
|
ユーザー |
|
提出日時 | 2021-05-03 00:44:32 |
言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
結果 |
TLE
|
実行時間 | - |
コード長 | 198 bytes |
コンパイル時間 | 136 ms |
コンパイル使用メモリ | 12,416 KB |
実行使用メモリ | 16,256 KB |
最終ジャッジ日時 | 2024-07-21 09:55:18 |
合計ジャッジ時間 | 27,560 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 26 TLE * 5 -- * 6 |
ソースコード
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)