Codeforces Round #565 DIV3 B問題
Problem description
省略
省略
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月24日08時03分02秒
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)