結果

問題 No.1471 Sort Queries
ユーザー umezoumezo
提出日時 2021-04-09 22:42:23
言語 C++17
(gcc 12.3.0 + boost 1.83.0)
結果
TLE  
実行時間 -
コード長 370 bytes
コンパイル時間 2,087 ms
コンパイル使用メモリ 203,572 KB
実行使用メモリ 7,792 KB
最終ジャッジ日時 2023-09-07 12:17:34
合計ジャッジ時間 12,352 ms
ジャッジサーバーID
(参考情報)
judge13 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 2 ms
4,500 KB
testcase_01 AC 2 ms
4,380 KB
testcase_02 AC 1 ms
4,376 KB
testcase_03 AC 2 ms
4,376 KB
testcase_04 AC 2 ms
4,380 KB
testcase_05 AC 2 ms
4,376 KB
testcase_06 AC 1 ms
4,376 KB
testcase_07 AC 1 ms
4,380 KB
testcase_08 AC 2 ms
4,376 KB
testcase_09 AC 2 ms
4,376 KB
testcase_10 AC 2 ms
4,380 KB
testcase_11 AC 2 ms
4,380 KB
testcase_12 AC 2 ms
4,380 KB
testcase_13 AC 102 ms
4,380 KB
testcase_14 AC 87 ms
4,380 KB
testcase_15 AC 162 ms
4,380 KB
testcase_16 AC 33 ms
4,376 KB
testcase_17 AC 71 ms
4,380 KB
testcase_18 AC 46 ms
4,376 KB
testcase_19 AC 43 ms
4,376 KB
testcase_20 AC 166 ms
4,380 KB
testcase_21 AC 77 ms
4,376 KB
testcase_22 AC 61 ms
4,380 KB
testcase_23 AC 368 ms
4,380 KB
testcase_24 AC 362 ms
4,376 KB
testcase_25 AC 596 ms
4,376 KB
testcase_26 AC 319 ms
4,380 KB
testcase_27 AC 542 ms
4,380 KB
testcase_28 AC 535 ms
4,380 KB
testcase_29 AC 315 ms
4,380 KB
testcase_30 AC 346 ms
4,380 KB
testcase_31 AC 559 ms
4,380 KB
testcase_32 AC 464 ms
4,376 KB
testcase_33 TLE -
testcase_34 -- -
testcase_35 -- -
testcase_36 -- -
testcase_37 -- -
testcase_38 -- -
testcase_39 -- -
権限があれば一括ダウンロードができます

ソースコード

diff #

#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;
}
0