- Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbase.cpp
More file actions
Latest commit
38 lines (33 loc) · 941 Bytes
/
Copy pathbase.cpp
File metadata and controls
38 lines (33 loc) · 941 Bytes
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
#include<bits/stdc++.h>
usingnamespacestd;
#definerep(i, n) for (int i = 0; i < n; i++)
#definerepn(i, n) for (int i = 1; i <= n; i++)
#defineintlonglong
#definefi first
#definese second
#definepb push_back
#definepii pair<int, int>
#definesz(v) (int)(v.size())
#defineall(v) v.begin(), v.end()
#definemem(a, val) memset(a, val, sizeof(a))
#definetrav(a, x) for (auto &a : x)
#definepopcount(x) __builtin_popcountll(x)
template<typename T, typename U> staticinlinevoidamn(T &x, U y) { if(y < x) x = y; }
template<typename T, typename U> staticinlinevoidamx(T &x, U y) { if(x < y) x = y; }
constintMOD = 1e9 + 7;
constlonglongINF = 1e18;
constint N = 5e5 + 5;
voidsolve() {
}
signedmain() {
ios_base::sync_with_stdio(0);cin.tie(0);cout.tie(0);
#ifdef SIEVE
sieve();
#endif
int test_case = 1;
cin >> test_case;
while (test_case--) {
solve();
}
return0;
}