Skip to content

Instantly share code, notes, and snippets.

@r1walz
Last active December 11, 2019 18:16
Show Gist options
  • Save r1walz/bef002abdb56c273ea06c69358d412d0 to your computer and use it in GitHub Desktop.
Save r1walz/bef002abdb56c273ea06c69358d412d0 to your computer and use it in GitHub Desktop.
My competitive programming template
#include <bits/stdc++.h>
using namespace std;
#define FAST_IO() do { \
ios_base::sync_with_stdio(false); \
cin.tie(NULL); \
cout.tie(NULL); \
} while (0);
#define start_routine() int begtime = clock();
#define end_routine() do { \
int endtime = clock(); \
cerr << "\n\n" << "Time elapsed: " \
<< (endtime - begtime) * 1000 / CLOCKS_PER_SEC \
<< " ms\n\n"; \
} while (0);
#define ll long long int
#define ull unsigned long long int
#define db long double
#define ff first
#define ss second
#define MP make_pair
#define pb push_back
#define lb lower_bound
#define ub upper_bound
#define pii pair<int, int>
#define pdd pair<db, db>
#define pll pair<ll, ll>
#define vpl vector<pll>
#define vll vector<ll>
#define mod 1000000007
#define mod1 998244353
#define inf 1000000000000000007
#define eps 0.000001
#define stp fixed << setprecision(20)
#define endl '\n'
#define codejam 0
#define APNA_IO
void solve() {
}
int main() {
FAST_IO();
#ifdef APNA_IO
start_routine();
freopen("input.txt", "r", stdin);
freopen("output.txt", "w", stdout);
#endif
ll t;
cin >> t;
for (ll i = 1; i <= t; ++i) {
if (codejam)
cout << "Case #" << i << ": ";
solve();
}
#ifdef APNA_IO
end_routine();
#endif
return 0;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment