Codeforces Round #807 DIV2 C問題 (1250pt)
Problem description
省略
省略
C++に変換後のコードはこちら
//no-unlocked
REP(rd_int()){
int @N, @C, @Q; char @S[N];
ll len[C+1] = {N}, L[C], R[C];
rd((L--,R)(C));
rep(i,C) len[i+1] = len[i] + R[i] - L[i];
rep(Q){
ll @K--;
rrep(i,C) if(K >= len[i]) K = L[i] + (K - len[i]);
wt(S[K]);
}
}
Current time: 2024年05月06日01時25分33秒
Last modified: 2022年12月30日21時59分23秒 (by laycrs)
Tags: Competitive_Programming_Incomplete Codeforces CF807 CF_DIV2_C
トップページに戻る
Logged in as: unknown user (not login)