Codeforces Global Round 5 A問題 - Balanced Rating Changes

Source

Codeforces Global Round 5 A問題 (500pt)
Problem description

問題概要

省略

解法

省略

cLayversion 20191108-1)のコード

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年04月25日13時33分01秒
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)

ログイン: