Codeforces Round #584 - Dasha Code Championship - Elimination Round D問題 (1500pt)
Problem description
省略
省略
C++に変換後のコードはこちら
//no-unlocked
int N, M, A[1d5], B[1d5];
{
int res;
rd(N,M,(A--,B--)(M));
unionFind uf;
uf.malloc(N);
uf.init(N);
res = M;
rep(i,M) res -= uf(A[i],B[i]);
wt(res);
}
Current time: 2024年03月29日11時40分04秒
Last modified: 2019年09月15日12時53分41秒 (by laycrs)
Tags: Competitive_Programming_Incomplete Codeforces CF584
トップページに戻る
Logged in as: unknown user (not login)