Codeforces Round #680 (based on Moscow Team Olympiad) DIV1 B問題 (1000pt)
Codeforces Round #680 (based on Moscow Team Olympiad) DIV2 D問題 (2000pt)
Problem description
省略
省略
C++に変換後のコードはこちら
//no-unlocked
#define MD 998244353
int N, A[3d5];
Comb<Modint> c;
{
Modint res = 0;
rd(N,A(2N));
sortA(2N, A);
rep(i,N) res -= A[i];
rep(i,N,2N) res += A[i];
wt(res*c.C(2N,N));
}
Current time: 2024年03月29日15時20分10秒
Last modified: 2020年11月03日08時18分03秒 (by laycrs)
Tags: Competitive_Programming_Incomplete Codeforces CF680 CF_DIV1_B CF_DIV2_D
トップページに戻る
Logged in as: unknown user (not login)