This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #include <iostream> | |
| #define ll long long int | |
| #define FASTIO \ | |
| ios ::sync_with_stdio(0); \ | |
| cin.tie(0); \ | |
| cout.tie(0); | |
| using namespace std; | |
| const int N = 2e5 + 5; | |
| const int INF = 0x3f3f3f3f; | |
| int n; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #include <bits/stdc++.h> | |
| using namespace std; | |
| const int maxn = 1e4 + 5; | |
| int fa[maxn]; | |
| set<int> birds; | |
| void init() | |
| { | |
| for (int i = 0; i < maxn; i++) | |
| fa[i] = i; | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #include <iostream> | |
| #include <cctype> | |
| #include <cstring> | |
| using namespace std; | |
| char str[205]; | |
| bool isParted(int x,int y){ | |