保存されている過去のバージョンの一覧

2019年09月15日12時52分57秒

Codeforces Round #584 - Dasha Code Championship - Elimination Round B問題 - Koala and Lights

Source

Codeforces Round #584 - Dasha Code Championship - Elimination Round B問題 (500pt)
Problem description

問題概要

省略

解法

省略

cLayversion 20190914-1)のコード

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

//no-unlocked
int N, A[100], B[100];
char S[102];
{
  int i, k, t, res = 0;
  rd(N,S,(A,B)(N));
  rep(i,N) S[i] -= '0';
  rep(t,1000){
    k = 0;
    rep(i,N) k += S[i];
    res >?= k;

    rep(i,N) if(B[i]==t){
      B[i] += A[i];
      S[i] ^= 1;
    }
  }
  wt(res);
}

Current time: 2024年04月25日14時06分44秒
Last modified: 2019年09月15日12時52分57秒 (by laycrs)
Tags: Competitive_Programming_Incomplete Codeforces CF584
トップページに戻る

Logged in as: unknown user (not login)

ログイン: