-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathaoc_template.cpp
82 lines (69 loc) · 1.67 KB
/
aoc_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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
#include <bits/stdc++.h>
using namespace std;
#define rep(i, a, b) for(int i = a; i < (b); ++i)
#define all(x) begin(x), end(x)
#define rall(x) rbegin(x), rend(x)
#define sz(x) (int)(x).size()
typedef long long ll;
typedef unsigned long long ull;
typedef pair<int, int> pii;
typedef pair<ll, ll> pll;
typedef vector<int> vi;
typedef vector<ull> vull;
typedef vector<ll> vll;
typedef vector<pll> vpll;
typedef vector<vi> vvi;
typedef pair<string, int> psi;
typedef pair<string, ll> psll;
typedef vector<psi> vpsi;
typedef vector<psll> vpsll;
typedef map<string, int> msi;
typedef map<string, ll> msll;
typedef map<char, int> mci;
typedef map<char, ll> mcll;
typedef stringstream ss;
template <typename T>
istream &operator >> (istream& is, pair<T, T> &p){
cin >> p.first >> p.second;
return is;
}
template <typename T>
ostream &operator << (ostream& os, pair<T,T> &p){
cout << p.first << " " << p.second;
return os;
}
pii operator* (pii a, int b) {
return {a.first * b, a.second * b};
};
void operator*= (pii&a, int b) {
a.first*=b;
a.second*=b;
}
pii operator+ (pii a, int b) {
return {a.first + b, a.second + b};
}
void operator+= (pii&a, pii b){
a.first += b.first;
a.second += b.second;
}
string str, word;
ll cnt = 0, a, b, x, num;
vi nums;
vector<string> vstr;
char c, _;
void p1() {
}
void p2() {
}
int main() {
cin.tie(0)->sync_with_stdio(0);
string part;
getline(cin, part);
if(part == "1") p1();
else if(part == "2") p2();
else {
cout << "\033[1;31minvalid input. Make sure first line is \"1\" or \"2\" to specify part\n\033[0m\n";
while(getline(cin, str)) {};
}
return 0;
}