結果
| 問題 | No.1471 Sort Queries |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2021-05-03 00:44:32 |
| 言語 | Python3 (3.14.3 + numpy 2.4.4 + scipy 1.17.1) |
| 結果 |
TLE
|
| 実行時間 | - |
| コード長 | 198 bytes |
| 記録 | |
| コンパイル時間 | 596 ms |
| コンパイル使用メモリ | 20,828 KB |
| 実行使用メモリ | 16,200 KB |
| 最終ジャッジ日時 | 2026-04-03 04:21:40 |
| 合計ジャッジ時間 | 32,455 ms |
|
ジャッジサーバーID (参考情報) |
judge1_1 / judge2_1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 27 TLE * 4 -- * 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)