#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 long
by 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
Ok, I will mention that in my blog. You can comment out that macro from the template
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, becauseO0
is the weakest level of optimization, while the highest isO3
or evenOfast
(note: almost alwaysO2
suffices — 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.Just being online everyday won't change anything, you have to take action to help.
Why there is no answer today? Go Now!