Educational Codeforces Round 98 B問題
Problem description
省略
省略
C++に変換後のコードはこちら
//no-unlocked
int N; ll A[1d5];
{
REP(rd_int()){
rd(N,A(N));
ll res = max(A(N)) * (N-1) - sum(A(N));
if(res < 0) res += (-res) /+ (N-1) * (N-1);
wt(max(res,0));
}
}
Current time: 2024年04月27日05時33分07秒
Last modified: 2020年11月21日19時17分25秒 (by laycrs)
Tags: Competitive_Programming_Incomplete Codeforces
トップページに戻る
Logged in as: unknown user (not login)