結果
問題 |
No.1471 Sort Queries
|
ユーザー |
|
提出日時 | 2021-04-09 23:06:10 |
言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
結果 |
TLE
|
実行時間 | - |
コード長 | 263 bytes |
コンパイル時間 | 257 ms |
コンパイル使用メモリ | 12,416 KB |
実行使用メモリ | 17,820 KB |
最終ジャッジ日時 | 2024-06-25 06:54:04 |
合計ジャッジ時間 | 25,538 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 26 TLE * 5 -- * 6 |
ソースコード
from sys import stdin def main(): input = lambda: stdin.readline()[:-1] N, Q = map(int, input().split()) S = input() for _ in [0] * Q: L, R, X = map(int, input().split()) s = sorted(S[L - 1 : R]) print(s[X - 1]) main()