Educational Codeforces Round 75 A問題
Problem description
省略
省略
C++に変換後のコードはこちら
//no-unlocked
int N;
char S[502];
int ok[26];
int ress; char res[27];
{
REP(rd_int()){
rd(S@N);
rep(i,N) S[i] -= 'a';
rep(i,26) ok[i] = 0;
while(N){
if(N >= 2 && S[N-1] == S[N-2]) N-=2, continue;
ok[S[--N]] = 1;
}
ress = 0;
rep(i,26) if(ok[i]) res[ress++] = 'a' + i;
res[ress] = '\0';
wt(res);
}
}
Current time: 2024年05月03日09時17分53秒
Last modified: 2019年11月10日18時55分22秒 (by laycrs)
Tags: Competitive_Programming_Incomplete Codeforces
トップページに戻る
Logged in as: unknown user (not login)