-
Notifications
You must be signed in to change notification settings - Fork 0
/
precode.cpp
78 lines (67 loc) · 2.05 KB
/
precode.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
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
#include <bits/stdc++.h>
using namespace std;
#define CLR(o) memset(o, 0x00, sizeof o)
#define CLR1(o) memset(o, -1, sizeof o)
#define take(var) cin >> var
#define takei(a) scanf("%d", &a)
#define takell(a) scanf("%lld", &a)
#define takellu(a) scanf("%llu", &a)
#define sf scanf
#define pb push_back
#define mp make_pair
#define ppp system("pause")
#define ok cout << "OKA" << endl;
#define pf printf
#define NL printf("\n")
#define PI 2 * acos(0)
#define all(o) o.begin(), o.end()
#define csi pf("Case %d: ", ++keis)
#define csii pf("Case %d:\n", ++keis)
#define _(o) pf("%d\n", o)
#define exx 2.7182818284590452353602875
#define xx first
#define yy second
typedef long long ll;
typedef unsigned long long ull;
///Helper
template<class T1>
void __(T1 p) { cout << p << endl; }
void deb() {
cout << endl;
}
template<typename T, typename... T1>
void deb(T s, T1... ts) {
return (cout << s << " "), deb(ts...);
}
long int PowerUp(long long b, long long p) {
if (p == 0) {
return 1;
}
return b * PowerUp(b, p - 1);
}
//int SET(int mask, int pos) { return mask | (1 << pos); }
//bool CHK(int mask, int pos) { return (1 & (mask >> pos)); }
const int xx[] = {0, 0, 1, -1, -1, 1, -1, 1};
const int yy[] = {1, -1, 0, 0, 1, 1, -1, -1};
const int kx[] = {-2, -1, 1, 2, 2, 1, -1, -2};
const int ky[] = {1, 2, 2, 1, -1, -2, -2, -1}; // KX-> Knight moves xx-> diagonal -> 8 horizontal/vertical->4
#define LT (1 << 31) - 1
#define MX
#define MOD
//ll FAST_EXP(ll base, ll power) /*base^power%MOD*/ {ll res=1ll;while(power){if(power&1)res=(res*base)%MOD;base=(base*base)%MOD;power>>=1;}return res%MOD;}
int main() {
ios_base::sync_with_stdio(false);
#ifdef RAFIK_FARHAD
freopen("../000.txt", "r", stdin);
freopen("../111.txt", "w", stdout);
clock_t ooo = clock();
#endif
/// MAIN
int a, b, c, d, i, j, k, keis(0), l, t, x, y, z;
/* Coding is FUN */
/// ENDD
#ifdef RAFIK_FARHAD
fprintf(stderr, "\n\nTime Elapsed: %lu MS\n", (clock() - ooo));
#endif
return 0;
}