Codeforces Round #581 DIV2 A問題 - BowWow and the Timetable

Source

Codeforces Round #581 DIV2 A問題 (500pt)
Problem description

問題概要

省略

解法

省略

cLayversion 20190820-1)のコード

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

//no-unlocked
int N;
char S[103];
{
  int i, res;
  rd(S@N);
  res = (N+1) / 2;
  rep(i,1,N) if(S[i]=='1') break;
  if(N%2 && i==N) res--;
  wt(res);
}

Current time: 2024年04月26日16時32分55秒
Last modified: 2019年08月21日04時49分11秒 (by laycrs)
Tags: Competitive_Programming_Incomplete Codeforces CF581 CF_Div2_A
トップページに戻る

Logged in as: unknown user (not login)

ログイン: