-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtemplete.cpp
More file actions
74 lines (64 loc) · 1.72 KB
/
templete.cpp
File metadata and controls
74 lines (64 loc) · 1.72 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
//Radhe Radhe
// love lines:
#include<bits/stdc++.h>
using namespace std;
#define ll long long int
#define debug(x) cout << "Debug " #x << ": " << x << endl;
#define pb push_back
#define present cout << "PRESENT" << endl;
#define rep(i, a, n) for (int i = a; i < n; i++)
#define printlist(x) for(auto it : x) cout<<it<<" ";cout<<endl;
const ll M = 1000000007;
ll Factorial[500000+10];
#include<ext/pb_ds/assoc_container.hpp>
#include<ext/pb_ds/tree_policy.hpp>
using namespace __gnu_pbds;
typedef tree<int, null_type, less<int>, rb_tree_tag, tree_order_statistics_node_update> pbds;
// X.find_by_order(k) return the kth smallest element (zero based)
// X.order_of_key(k) return the count of element strictly less than K
ll add(ll x, ll y) { return (x%M + y%M)%M; }
ll sub(ll x, ll y) { return (x%M - y%M + M)%M; }
ll mul(ll x, ll y) { return (x%M * y%M)%M; }
void print(vector<ll> v1) {
for (auto x : v1) { cout << x << " "; }
cout << endl;
}
ll binexp(ll a, ll b) {
ll res = 1;
while (b) {
if (b & 1) res = ((res%M)*(a%M)%M);
a = ((a%M)*(a%M)%M);
b >>= 1LL;
}
return res % M;
}
void make_factorial() {
Factorial[0] = 1;
for (int i = 1; i < 500010; i++)
Factorial[i] = (Factorial[i-1] * i) % M;
}
ll Mod_Inv(ll a) {
return binexp(a % M, M-2);
}
int nCr(ll n, ll r) {
return (((Factorial[n] * Mod_Inv(Factorial[r])) % M) * Mod_Inv(Factorial[n-r])) % M;
}
void love(bool flag) {
if (flag)
cout << "YES\n";
else
cout << "NO\n";
}
void Radhe() {
// I don't care about Rating, I like Experience
}
int main() {
ios::sync_with_stdio(false);
cin.tie(nullptr);
ll t;
cin >> t;
while (t--) {
Radhe();
}
return 0;
}