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

2021年02月27日12時46分59秒

Educational Codeforces Round 104 C問題 - Minimum Ties

Source

Educational Codeforces Round 104 C問題
Problem description

問題概要

省略

解法

省略

cLayversion 20210227-1)のコード

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

//no-unlocked
int N, res[100][100];
int ress, arr[1d4];
{
  REP(rd_int()){
    rd(N);
    rep(i,N) rep(j,N) res[i][j] = 0;
    rep(i,N) rep(j,(N-1)/2) res[i][(i+j+1)%%N] = 1;
    rep(i,N) rep(j,(N-1)/2) res[i][(i-j-1)%%N] = -1;
    ress = 0;
    rep(i,N) rep(j,i+1,N) arr[ress++] = res[i][j];
    wt(arr(ress));
  }
}

Current time: 2024年04月20日03時16分13秒
Last modified: 2021年02月27日12時46分59秒 (by laycrs)
Tags: Competitive_Programming_Incomplete Codeforces
トップページに戻る

Logged in as: unknown user (not login)

ログイン: