Codeforces Round #587 DIV3 A問題 - Prefixes

Source

Codeforces Round #587 DIV3 A問題
Problem description

問題概要

省略

解法

省略

cLayversion 20190925-1)のコード

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)

ログイン: