-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathutils2.cpp
45 lines (41 loc) · 978 Bytes
/
utils2.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
#include<bits/stdc++.h>
using namespace std;
#pragma GCC optimize ("O3")
#pragma GCC target ("sse4")
#define ll long long
#define vi vector<int>
#define vvi vector<vector<int>>
#define vvii vector<vector<pair<int, int>>>
#define vvl vector<vector<ll>>
#define vvll vector<vector<pair<ll, ll>>>
#define FOR(x, N) for(x = 0; x < N; ++x)
#define epsilon 1e-9
#define INF 3e18 + 5
#define MOD 1000000007
template<typename T> T getint() {
T val=0;
char c;
bool neg=false;
while((c=getchar()) && !(c>='0' && c<='9')) {
neg|=c=='-';
}
do {
val=(val*10)+c-'0';
} while((c=getchar()) && (c>='0' && c<='9'));
return val*(neg?-1:1);
}
template<class... Args>
inline void print(Args&&... args){
((cout << args << " "), ...) << "\n";
}
template<class T>
inline void parr(vector<T> arr){
for(auto a : arr) cout << a << " ";
cout << "\n";
}
int Q, N, M, a, b;
int main() {
ios::sync_with_stdio(0);
cin.tie(0); cout.tie(0);
ifstream cin("input.txt");
}