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

2019年08月22日00時49分05秒

Codeforces Round #565 DIV3 B問題 - Merge it!

Source

Codeforces Round #565 DIV3 B問題
Problem description

問題概要

省略

解法

省略

cLayversion 20190820-1)のコード

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

//no-unlocked
int T, N, A[100];
{
  int i, c[3];
  
  rd(T);
  rep(T){
    rd(N,A(N));
    c[0..2] = 0;
    c[A[0..N-1]%3]++;

    i = min(c[1], c[2]);
    c[0] += i;
    c[1..2] -= i;
    c[0] += c[1..2] / 3;

    wt(c[0]);
  }
}

Current time: 2024年04月23日21時10分42秒
Last modified: 2019年08月22日00時49分05秒 (by laycrs)
Tags: Competitive_Programming_Incomplete Codeforces CF565 CF_Div3_B
トップページに戻る

Logged in as: unknown user (not login)

ログイン: