-
Notifications
You must be signed in to change notification settings - Fork 0
/
default_format.cpp
51 lines (37 loc) · 1.22 KB
/
default_format.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
#include<bits/stdc++.h>
using namespace std;
typedef long long int ll;
typedef pair<int, int> pi;
typedef pair<ll, ll> pl;
typedef vector<int> vi;
typedef vector<ll>vl;
typedef vector<pi> vpi;
typedef queue<int> qi;
typedef queue<pi> qpi;
#define endl '\n'
#define mp make_pair
#define pb push_back
#define fr first
#define sc second
#define resetArray(a, b) memset(a, b, sizeof(a))
#define resetVector(a, b) fill(a.begin(), a.end(), b)
#define clr(a) a.clear()
#define sz(a) a.size()
#define loop(a,b,c) for(int i = a; i <= b ; i+=c)
#define rloop(a,b,c) for(int i = a ; i >= b ; i-=c)
#define getI(a) scanf("%d", &a)
#define getII(a,b) scanf("%d %d", &a, &b)
#define getIII(a,b,c) scanf("%d %d %d", &a, &b, &c)
#define getL(a) scanf("%lld", &a)
#define present(c,x) if (c.find(x) != c.end)
#define sort(v) sort(v.begin(), v.end())
#define andbit(x, i) x&(1<<i)
#define orbit(x, i) x|(1<<i)
#define printA(a,l,r) loop(i,l,r) cout << a[i] << (i==r?endl:' ')
#define printV(a) if(a.size() >= 1) printA(a,0,a.size()-1); else cout<<"empty"
// for directions
const int fx[4][2] = {{0, 1}, {0, -1}, {1, 0}, { -1, 0}};
const int fxx[8][2] = {{0, 1}, {0, -1}, {1, 0}, { -1, 0}, {1, 1}, {1, -1}, { -1, 1}, { -1, -1}};
int main() {
return 0;
}