結果
問題 |
No.1471 Sort Queries
|
ユーザー |
![]() |
提出日時 | 2021-04-09 22:42:23 |
言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
結果 |
TLE
|
実行時間 | - |
コード長 | 370 bytes |
コンパイル時間 | 2,997 ms |
コンパイル使用メモリ | 196,944 KB |
最終ジャッジ日時 | 2025-01-20 14:56:54 |
ジャッジサーバーID (参考情報) |
judge3 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 33 TLE * 4 |
ソースコード
#define rep(i,n) for(int i=0;i<(int)(n);i++) #define ALL(v) v.begin(),v.end() typedef long long ll; #include<bits/stdc++.h> using namespace std; int main(){ int n,q; string s; cin>>n>>q>>s; while(q--){ int l,r,x; cin>>l>>r>>x; l--,r--,x--; string t=s; t=t.substr(l,r-l+1); sort(ALL(t)); cout<<t[x]<<endl; } return 0; }