2021年02月27日12時46分59秒に更新されたバージョンを表示しています.
最新のページはこちらをご覧ください.
Educational Codeforces Round 104 C問題
Problem description
省略
省略
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年05月03日09時05分17秒
Last modified: 2021年02月27日12時46分59秒 (by laycrs)
Tags: Competitive_Programming_Incomplete Codeforces
トップページに戻る
Logged in as: unknown user (not login)