-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathtmpl.cpp
44 lines (36 loc) · 1014 Bytes
/
tmpl.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
#include <bits/stdc++.h>
using namespace std;
/** START OF TEMPLATE */
#define read(x) do{while((x=getchar())<'0');for(x-='0';'0'<=(_=getchar());x=(x<<3)+(x<<1)+_-'0');}while(0)
char _;
#define DEBUG(...) cerr << " [" << #__VA_ARGS__ << ": " << (__VA_ARGS__) << "] "
template<typename T, typename U> ostream& operator<<(ostream& s, pair<T, U> p) {
return s << " (" << p.first << "," << p.second << ") ";
}
template<typename T> ostream& operator<<(ostream& s, vector<T> v) {
s << "size: " << v.size() << " {";
for (T& t : v) {
s << t << " ";
}
s << "} ";
return s;
}
template<typename T> ostream& operator<<(ostream& s, vector<vector<T>> m) {
s << "shape: " << m.size() << 'x' << m[0].size() << endl;
for (vector<T>& r : m) {
for (T& t : r) {
cout << t << ' ';
}
cout << endl;
}
return s;
}
typedef long long ll;
typedef pair<int, int> pii;
/** END OF TEMPLATE */
/** CODE STARTS HERE */
int main() {
ios::sync_with_stdio(false);
cin.tie(NULL);
return 0;
}