Codeforces Global Round 5 A問題 (500pt)
Problem description
省略
省略
C++に変換後のコードはこちら
//no-unlocked
int N, A[15000];
{
int fg = 0;
rd(N,A(N));
rep(i,N) if(A[i] % 2 != 0){
if[fg==0, A[i]++, A[i]--];
fg ^= 1;
}
rep(i,N) A[i] /= 2;
wtLn(A(N));
}
Current time: 2024年05月04日17時13分30秒
Last modified: 2019年11月10日19時10分41秒 (by laycrs)
Tags: Competitive_Programming_Incomplete Codeforces Codeforces_Global_Round_5
トップページに戻る
Logged in as: unknown user (not login)