Codeforces Round #586 D問題 - Alex and Julian

Source

Codeforces Round #586 D問題 (2250pt)
Problem description

問題概要

省略

解法

省略

cLayversion 20190921-1)のコード

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

//no-unlocked
int N;
ll B[2d5];

int val[2d5], cnt[64], mxind;
ll res[2d5], ress;
{
  rd(N,B(N));
  rep(i,N) cnt[ val[i] = BIT_ctz(B[i]) ]++;
  mxind = argmax(cnt(64));
  rep(i,N) if(val[i] != mxind) res[ress++] = B[i];
  wt(ress);
  wt(res(ress));
}

Current time: 2024年04月26日19時57分08秒
Last modified: 2019年09月21日12時31分33秒 (by laycrs)
Tags: Competitive_Programming_Incomplete Codeforces CF586
トップページに戻る

Logged in as: unknown user (not login)

ログイン: