Skip to content
Snippets Groups Projects
Commit a437d0fb authored by Bruno Freitas Tissei's avatar Bruno Freitas Tissei
Browse files

Remove unnecessary spaces

parent c1597df5
No related branches found
No related tags found
No related merge requests found
......@@ -45,7 +45,6 @@ bool solve(int i, int r) {
return dp[i][r] = false;
}
int main() {
ios::sync_with_stdio(0);
cin.tie(0);
......
......@@ -33,14 +33,12 @@ void make_set(int x) {
size[x] = 1;
}
int find_set(int x) {
if (pare[x] != x)
pare[x] = find_set(pare[x]);
return pare[x];
}
void union_set(int x, int y) {
x = find_set(x);
y = find_set(y);
......@@ -55,7 +53,6 @@ void union_set(int x, int y) {
size[y] += size[x];
}
int kruskal() {
sort(all(edges), [&](const iii &a, const iii &b) {
return a.se < b.se;
......@@ -107,14 +104,12 @@ void dfs(int v, int p = -1, int c = 0) {
dfs(u.fi, v, u.se);
}
void preprocess(int v) {
memset(par, -1, sizeof par);
memset(cost, 0, sizeof cost);
dfs(v);
}
int query(int p, int q) {
int ans = 0;
......@@ -141,7 +136,6 @@ int query(int p, int q) {
else return max(ans, max(cost[p][0], cost[q][0]));
}
int main() {
ios::sync_with_stdio(0);
cin.tie(0);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment