2019年11月10日18時55分41秒に更新されたバージョンを表示しています.
最新のページはこちらをご覧ください.


Educational Codeforces Round 75 C問題 - Minimize The Integer

Source

Educational Codeforces Round 75 C問題
Problem description

問題概要

省略

解法

省略

cLayversion 20191108-1)のコード

C++に変換後のコードはこちら

//no-unlocked
int N;
char S[300002];
char x[300001], y[300001]; int xs, ys;
{
  int a, b;
  REP(rd_int()){
    rd(S@N);
    xs = ys = 0;
    rep(i,N){
      if(S[i]%2==0) x[xs++] = S[i];
      else          y[ys++] = S[i];
    }
    x[xs] = y[ys] = '9' + 1;
    a = b = 0;
    rep(i,N) S[i] = if[x[a] <= y[b], x[a++], y[b++]];
    wt(S);
  }
}

Current time: 2024年03月29日01時43分04秒
Last modified: 2019年11月10日18時55分41秒 (by laycrs)
Tags: Competitive_Programming_Incomplete Codeforces
トップページに戻る

Logged in as: unknown user (not login)

ログイン: