Some useful algorithms for competitive programming
#include <bits/stdc++.h> #define f first #define s second using namespace std; typedef long long ll; typedef pair<int, int> ii; int main() { // if (fopen("in", "r")) freopen("in", "r", stdin), freopen("out", "w", stdout); }