-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtemplate.cpp
45 lines (37 loc) · 971 Bytes
/
template.cpp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
//!!CONVERT-BREAKS
#include <bits/stdc++.h>
using namespace std;
using ll = long long;
using vi = vector<int>;
using pii = pair<int,int>;
#define pb push_back
#define x first
#define y second
#define rep(i,b,e) for (int i=(b); i<(e); i++)
#define each(a,x) for (auto& a : (x))
#define all(x) (x).begin(), (x).end()
#define sz(x) (int)(x).size()
#define PP(x,y) auto operator<<(auto&o, auto a) \
->decltype(y,o) {o<<"("; x; return o<<")";}
PP(a.print(), a.print());
PP(o << a.x << ", " << a.y, a.y);
PP(for (auto i : a) o << i << ", ", all(a));
void DD(auto s, auto... k) {
([&] {
while (cerr << *s++, 45 % ~*s);
cerr << ": " << k;
}(), ...);
}
#ifdef LOC
auto SS = signal(6, [](int) { *(int*)0=0; });
#define deb(x...) \
DD(":, "#x, __LINE__, x), cerr << endl
#else
#define deb(...)
#endif
#define DBP(x...) void print() { DD(#x, x); }
int main() {
cin.tie(0)->sync_with_stdio(0);
cout << fixed << setprecision(10);
return 0; //!HIDE
}