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

2020年02月29日16時48分35秒
2020年02月29日16時02分51秒

Codeforces Round #602 DIV1 E問題 - Not Same

Source

Codeforces Round #602 DIV1 E問題 (2250pt)
Technocup 2020 - Elimination Round 3 G問題 (3250pt)
Problem description

問題概要

省略

解法

省略

cLayversion 20200227-1)のコード

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

//no-unlocked
int N, A[1000], ind[1000];

int ress;
char res[1001][1001];
{
  rd(N,A(N));
  rep(i,N) ind[i] = i;
  rsortA(N, A, ind);
  ress = N+1;
  rep(i,ress) rep(j,N) res[i][j] = '0';
  rep(i,N) rep(j,A[i]) res[(i+j)%ress][ind[i]]++;
  rep(i,N) if(res[ress-1][i]=='1') break;
  if(i==N) ress--;
  wt(ress);
  rep(i,ress) wt(res[i]);
}

Current time: 2024年03月29日03時33分55秒
Last modified: 2020年02月29日16時48分35秒 (by laycrs)
Tags: Competitive_Programming_Incomplete Codeforces CF602 CF_Div1_E
トップページに戻る

Logged in as: unknown user (not login)

ログイン: