Codeforces Round #724 DIV2 B問題 (1000pt)
Problem description
省略
省略
C++に変換後のコードはこちら
//no-unlocked
int N; string S;
int sz = 1; string chk[1d5];
{
rep(k,sz) rep(i,'a','z'+1) if(sz <= 1000){
chk[sz] = chk[k] + (char)i;
sz++;
}
REP(rd_int()){
rd(N,S);
rep(k,1,sz) if(!isSubstring(S,chk[k])) wt(chk[k]), break;
}
}
Current time: 2024年04月30日09時55分13秒
Last modified: 2021年06月07日19時38分35秒 (by laycrs)
Tags: Competitive_Programming_Incomplete Codeforces CF724 CF_DIV2_B
トップページに戻る
Logged in as: unknown user (not login)