-
Notifications
You must be signed in to change notification settings - Fork 0
/
template.cpp
82 lines (66 loc) · 2.29 KB
/
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
/**
* author: $%U%$
* created: $%M%$.$%D%$.$%Y%$ $%h%$:$%m%$:$%s%$
* Potatoes FTW!
**/
#include<bits/stdc++.h>
#if LOCAL
#include <DespicableMonkey/Execution_Time.h>
#include <DespicableMonkey/Debug.h>
#define debug_active 1
#endif
using namespace std;
#define pb push_back
#define f first
#define s second
#define my_brain_hurts int Test_Cases = 1;
#define all(c) (c).begin(), (c).end()
#define sz(x) (int)(x).size()
#define ts(x) to_string(x)
#define has(container, element) ((bool)(container.find(element) != container.end()))
#define FOR(i,a,b) for (int i = (a); i < (b); ++i)
#define FORE(i, a, b) for(int i = (a); i<= (b); ++i)
#define ll long long
template<typename T, typename U> using pr = pair<T, U>;
template<typename T> using vt = vector<T>;
template<class T> bool cmin(T& a, const T& b) { return b < a ? a = b, 1 : 0; }
template<class T> bool cmax(T& a, const T& b) { return a < b ? a = b, 1 : 0; }
inline namespace CP {
inline namespace Output {
#if !defined LOCAL
#define dbg(...) ;
#define print_test_case(...) ;
#define debug_active 0
#endif
template<class T> void outv(vector<T> v, int add = 0, bool standard = 1) {for(T& i : v) (standard?cout:cerr) << (i+add) << " "; cout << '\n'; }
template<class T> void put(T output) { cout << output << '\n'; }
#define putr(__output) return void(put(__output))
}
class IO { public:
void setIn(string s) { (void)!freopen(s.c_str(),"r",stdin); }
void setOut(string s) { (void)!freopen(s.c_str(),"w",stdout); }
void Input(int __use_input = 0) {if(!!__use_input && debug_active){setIn("in"+to_string(__use_input)+".txt");}}
IO FastIO() { cin.tie(nullptr)->sync_with_stdio(0); return *this; }
IO* SetIO(string __s = "", string __t = "") {
cin.exceptions(cin.failbit); // throws exception when do smth illegal ex. try to read letter into int
if(sz(__t) && !debug_active) setIn(__s), setOut(__t);
else if (sz(__s) && !debug_active) setIn(__s+".in"), setOut(__s+".out"); // for old USACO
return this;
}
};
}
const int MX = (2e5+43);
int N;
int a[MX];
void test_case() {
}
int main () {
CP::IO().SetIO()->FastIO().Input(0);
my_brain_hurts
cin >> Test_Cases;
for(int tt = 1; tt <= Test_Cases; ++tt){
print_test_case(tt);
test_case();
}
return 0;
}