Skip to content

Commit 804fc85

Browse files
Update solutions/usaco-646.mdx
Co-authored-by: ChuangSheep <44814054+ChuangSheep@users.noreply.github.com>
1 parent 8d72fb3 commit 804fc85

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

solutions/usaco-646.mdx

+1-1
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ using namespace std;
3535
//BeginCodeSnip{DSU}
3636
struct DSU {
3737
vector<int> e;
38-
DSU(int N) { e = vector<int>(N, -1); }
38+
DSU(int N): e(N, -1) { }
3939

4040
// get representive component (uses path compression)
4141
int get(int x) { return e[x] < 0 ? x : e[x] = get(e[x]); }

0 commit comments

Comments
 (0)