Codeforces Round #766 DIV2 B問題 (1250pt)
Problem description
省略
省略
C++に変換後のコードはこちら
//no-unlocked
int arr[1d5];
REP(rd_int()){
int @N, @M, sz = 0;
rep(i,N) rep(j,M) arr[sz++] = max(i+j, N-1-i+j, i+M-1-j, N-1-i+M-1-j);
sortA(sz,arr);
wt(arr(sz));
}
Current time: 2024年05月19日02時42分27秒
Last modified: 2022年01月16日03時42分42秒 (by laycrs)
Tags: Competitive_Programming_Incomplete Codeforces CF766 CF_DIV2_B
トップページに戻る
Logged in as: unknown user (not login)