Codeforces Round #587 DIV3 A問題
Problem description
省略
省略
C++に変換後のコードはこちら
//no-unlocked
int N;
char S[200002];
{
int res = 0;
rd(N,S);
rep(i,0,N,2) if(S[i]==S[i+1]){
res++;
S[i] = if[S[i]=='a', 'b', 'a'];
}
wtLn(res,S);
}
Current time: 2024年04月26日00時15分01秒
Last modified: 2019年09月26日01時46分45秒 (by laycrs)
Tags: Competitive_Programming_Incomplete Codeforces CF587 CF_Div3_A
トップページに戻る
Logged in as: unknown user (not login)