#pragma GCC optimize("O0")
#include <iostream>
#include <bits/stdc++.h>
using namespace std;
#define int long long
#define endl "\n"
#define optimise() ios_base::sync_with_stdio(true); cin.tie(0); cout.tie(0);
#define debug (x) cout << "debugged variable:" << x << endl;
#define map unordered_map
#define set unordered_set
int32_t main() {
return 1;
}
Explanation of template:
#pragma GCC optimize("O0")means using fast compiler options to optimize#define int long long— useslong longby default instead ofint, prevents overflows#define optimise()optimises reading input/output#define debug (x)is a debug function, use it like this:debug(my_variable).#define map/set— uses more efficient unordered hashtable (insert/delete operation in $$$O(1)$$$) instead of regular search tree (which is $$$O(\log n)$$$).








Unordered maps and sets are vulnerable to collision attacks. I wouldn't recommend that macro
Brother's plan is to first distribute this template then hack everyone.
Lol
It is unclear, why should one make macro for
because there is no need to type these lines more than once.
Also,
#pragma GCC optimize("O0")is even harmful, becauseO0is the weakest level of optimization, while the highest isO3or evenOfast(note: almost alwaysO2suffices — it is enabled on Codeforces by default)return 1;— this tells the operating system the program has high priority 1, instead of normal 0. this will make judging faster.