Codeforces Round #592 DIV2 B問題 - Rooms and Staircases

Source

Codeforces Round #592 DIV2 B問題 (1000pt)
Problem description

問題概要

省略

解法

省略

cLayversion 20191027-1)のコード

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

//no-unlocked
int N;
char S[1002];
{
  int i, res;
  REP(rd_int()){
    rd(N,S);
    res = N;
    rep(i,N) if(S[i]=='1') {
      res >?= 2(i+1);
      res >?= 2(N-i);
    }
    wt(res);
  }
}

Current time: 2024年04月20日17時27分25秒
Last modified: 2019年11月02日02時57分54秒 (by laycrs)
Tags: Competitive_Programming_Incomplete Codeforces CF592 CF_Div2_B
トップページに戻る

Logged in as: unknown user (not login)

ログイン: