-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathE.cpp
More file actions
91 lines (76 loc) · 2.4 KB
/
E.cpp
File metadata and controls
91 lines (76 loc) · 2.4 KB
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
83
84
85
86
87
88
89
90
91
#include <bits/stdc++.h>
using namespace std;
//constants
#define mod 1e9+7 // 998244353
#define pi 3.1415926535897932384626433832795
//for loops
#define for0(i, N) for (int i = 0; i < (int) N; i++)
#define for1(i, N) for (int i = 1; i <= (int) N; i++)
#define forr0(i, N) for (int i = (int) N - 1; ~i; i--)
#define forr1(i, N) for (int i = (int) N; i; i--)
#define foru(i, l, r, x) for (int i = l; i <= r; i += x)
//primitives & string
using ll = long long;
using str = std::string; // lol python
//pairs
using ii = std::pair<int, int>;
using llll = std::pair<ll, ll>;
#define mp make_pair
#define fi first
#define se second
using mii = std::map<int, int>;
using mllll = std::map<ll, ll>;
//vectors
using vi = std::vector<int>;
using vvi = std::vector<vi>;
using vii = std::vector<ii>;
using vvii = std::vector<std::vector<ii>>;
using vs = std::vector<str>;
using vb = std::vector<bool>;
using vll = std::vector<ll>;
using vvll = std::vector<vll>;
using vllll = std::vector<llll>;
using vvllll = std::vector<vllll>;
//shortcuts
#define sz(x) int((x).size())
#define bg(x) x.begin()
#define all(x) bg(x), end(x)
#define rall(x) rbegin(x), rend(x)
#define ins insert
#define pb push_back
#define eb emplace_back
#define ft front()
#define bk back()
#define lb lower_bound
#define ub upper_bound
//those grid problems (thanks BenCh)
const int dx[4]{1, 0, -1, 0}, dy[4]{0, 1, 0, -1};
//ceiling and floor divsion
ll cdiv(ll a, ll b) { return a/b+((a^b)>0&&a%b); }
ll fdiv(ll a, ll b) { return a/b-((a^b)<0&&a%b); }
int readInt() {int x; cin >> x; return x;}
ll readLL() {ll x; cin >> x; return x;}
str readString() {str s; cin >> s; return s;}
vi readInts(int N) {vi arr(N); for0 (i, N) cin >> arr[i]; return arr;}
vll readLLs(int N) {vll arr(N); for0 (i, N) cin >> arr[i]; return arr;}
// SOLUTION
void meow() {
/* /ᐠ。ꞈ。ᐟ\ */;
}
int main () {
cin.tie(0); ios::sync_with_stdio(0);
int T; cin >> T;
while(T--)
meow();
}
// |
// |
//------------------------------------------------------------------------------
/* stuff you should look for
* int overflow, array out of bounds
* special cases (n=1, n = 0?)
* do smth instead of nothing and stay organized
* WRITE STUFF DOWN
* DON'T GET STUCK ON ONE APPROACH
* don't be mental diffed
*/