-
Notifications
You must be signed in to change notification settings - Fork 48
/
Copy pathuseful_macros.cpp
37 lines (31 loc) · 947 Bytes
/
useful_macros.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
#include "bits/stdc++.h"
using namespace std;
#define int int64_t
#define ld long double
#define mod 1000000007
#define F first
#define S second
#define pb push_back
#define tst() int ttt;cin>>ttt;for(int test=1;test<=ttt;++test)
#define rep(i,a,b) for(i=a;i<b;++i)
#define repr(i,a,b) for(i=a;i>=b;--i)
#define sz(a) ((int)(a.size()))
#define sq(a) ((a)*(a))
#define i(a) ((int)(a))
#define all(p) p.begin(), p.end()
#define ceil(a , b) ((a / b) + (a%b && 1))
#define precise(p,out) fixed << setprecision(p) << (ld)out
typedef pair<int,int> pii;
typedef vector<int> vi;
typedef vector<pii> vii;
typedef priority_queue <int> que_max;
typedef priority_queue <int, vi, greater<int>> que_min;
int pw(int b, int p) { int r = 1; while (p > 0) { if (p & 1) r = r * b;
p = p >> 1; b = b * b; } return r; }
//const int mx = i(1e5) + 1;
int32_t main()
{
ios_base::sync_with_stdio(false);
cin.tie(NULL);
return 0;
}