結果
| 問題 |
No.1471 Sort Queries
|
| コンテスト | |
| ユーザー |
da_ab
|
| 提出日時 | 2021-04-13 20:54:26 |
| 言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
| 結果 |
TLE
|
| 実行時間 | - |
| コード長 | 246 bytes |
| コンパイル時間 | 74 ms |
| コンパイル使用メモリ | 12,544 KB |
| 実行使用メモリ | 17,820 KB |
| 最終ジャッジ日時 | 2024-06-30 01:13:11 |
| 合計ジャッジ時間 | 23,870 ms |
|
ジャッジサーバーID (参考情報) |
judge5 / judge4 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 27 TLE * 4 -- * 6 |
ソースコード
# 1471 Sort Queries
from sys import stdin
n,q=list(map(int,stdin.readline().split()))
s=tuple(stdin.readline().rstrip())
for _ in range(q):
l,r,x=list(map(int,stdin.readline().split()))
subS=sorted(s[l-1:r-1+1])
print(subS[x-1])
da_ab