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) { ...@@ -45,7 +45,6 @@ bool solve(int i, int r) {
return dp[i][r] = false; return dp[i][r] = false;
} }
int main() { int main() {
ios::sync_with_stdio(0); ios::sync_with_stdio(0);
cin.tie(0); cin.tie(0);
......
...@@ -33,14 +33,12 @@ void make_set(int x) { ...@@ -33,14 +33,12 @@ void make_set(int x) {
size[x] = 1; size[x] = 1;
} }
int find_set(int x) { int find_set(int x) {
if (pare[x] != x) if (pare[x] != x)
pare[x] = find_set(pare[x]); pare[x] = find_set(pare[x]);
return pare[x]; return pare[x];
} }
void union_set(int x, int y) { void union_set(int x, int y) {
x = find_set(x); x = find_set(x);
y = find_set(y); y = find_set(y);
...@@ -55,7 +53,6 @@ void union_set(int x, int y) { ...@@ -55,7 +53,6 @@ void union_set(int x, int y) {
size[y] += size[x]; size[y] += size[x];
} }
int kruskal() { int kruskal() {
sort(all(edges), [&](const iii &a, const iii &b) { sort(all(edges), [&](const iii &a, const iii &b) {
return a.se < b.se; return a.se < b.se;
...@@ -107,14 +104,12 @@ void dfs(int v, int p = -1, int c = 0) { ...@@ -107,14 +104,12 @@ void dfs(int v, int p = -1, int c = 0) {
dfs(u.fi, v, u.se); dfs(u.fi, v, u.se);
} }
void preprocess(int v) { void preprocess(int v) {
memset(par, -1, sizeof par); memset(par, -1, sizeof par);
memset(cost, 0, sizeof cost); memset(cost, 0, sizeof cost);
dfs(v); dfs(v);
} }
int query(int p, int q) { int query(int p, int q) {
int ans = 0; int ans = 0;
...@@ -141,7 +136,6 @@ int query(int p, int q) { ...@@ -141,7 +136,6 @@ int query(int p, int q) {
else return max(ans, max(cost[p][0], cost[q][0])); else return max(ans, max(cost[p][0], cost[q][0]));
} }
int main() { int main() {
ios::sync_with_stdio(0); ios::sync_with_stdio(0);
cin.tie(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