-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathtemplate.cpp
More file actions
86 lines (76 loc) · 2.64 KB
/
template.cpp
File metadata and controls
86 lines (76 loc) · 2.64 KB
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
79
80
81
82
83
84
85
#include <bits/stdc++.h>
using namespace std;
//Author: Varun Goyal (@govarun)
void __print(int x) {cerr << x;}
void __print(long x) {cerr << x;}
void __print(long long x) {cerr << x;}
void __print(unsigned x) {cerr << x;}
void __print(unsigned long x) {cerr << x;}
void __print(unsigned long long x) {cerr << x;}
void __print(float x) {cerr << x;}
void __print(double x) {cerr << x;}
void __print(long double x) {cerr << x;}
void __print(char x) {cerr << '\'' << x << '\'';}
void __print(const char *x) {cerr << '\"' << x << '\"';}
void __print(const string &x) {cerr << '\"' << x << '\"';}
void __print(bool x) {cerr << (x ? "true" : "false");}
template<typename T, typename V>
void __print(const pair<T, V> &x) {cerr << '{'; __print(x.first); cerr << ','; __print(x.second); cerr << '}';}
template<typename T>
void __print(const T &x) {int f = 0; cerr << '{'; for (auto &i: x) cerr << (f++ ? "," : ""), __print(i); cerr << "}";}
void _print() {cerr << "]\n";}
template <typename T, typename... V>
void _print(T t, V... v) {__print(t); if (sizeof...(v)) cerr << ", "; _print(v...);}
#ifdef GOVARUN
#define debug(x...) cerr << "[" << #x << "] = ["; _print(x)
#else
#define debug(x...)
#endif
#define f(i, n) for(int i=0;i<(n);++i)
#define fa(i, a, n) for(int i=(a);i<=(n);++i)
#define fd(i, a, n) for(int i=(a);i>=(n);--i)
#define trav(a,x) for(auto &a:x)
#define all(x) x.begin(), x.end()
#define sz(x) (int)(x).size()
#define fill(a) memset(a, 0, sizeof (a))
#define ff first
#define ss second
#define mp make_pair
#define pb push_back
#define endl '\n'
typedef long double ld;
typedef long long ll;
typedef vector<ll> vl; typedef vector<int> vi;
typedef vector<vl> vvl; typedef vector<vi> vvi;
typedef pair<ll, ll> pll; typedef pair<int, int> pii;
inline bool EQ(double a, double b) {return fabs(a-b) < 1e-9;}
ll gcd(ll a, ll b){if(b==0)return a;return gcd(b, a%b);}
ll lcm(ll a, ll b){return a*(b/gcd(a, b));}
ll binexp(ll a, ll b, ll mod){ll ans = 1;while(b){if(b&1) ans = ans*a%mod; b/=2;a=a*a%mod;}return ans;}
ll inverse(ll a, ll p, ll mod){return binexp(a, p-2, mod);}
// bool sortbysec(const pll &a, const pll &b){return (a.second < b.second);}
void createadj(vvl& adj, ll m){ll x, y; f(i, m){cin>>x>>y;x--, y--;adj[x].pb(y);adj[y].pb(x);}}
const ll mod = 1e9 + 7;
const int maxn = 1e5 + 5;
void pre(){
}
void solve() {
}
int main(){
ios::sync_with_stdio(0);
cin.tie(0); cout.tie(0);
#ifdef GOVARUN
freopen("input.txt", "r", stdin);
freopen("output.txt", "w", stdout);
#else
#define GOVARUN 0
#endif
int TC = 1;
// cin >> TC;
pre();
while(TC--){
solve();
cout << "\n";
}
return 0;
}