forked from sahilbansal17/Competitive_Coding
-
Notifications
You must be signed in to change notification settings - Fork 8
Expand file tree
/
Copy pathsimple.cpp
More file actions
48 lines (35 loc) · 891 Bytes
/
simple.cpp
File metadata and controls
48 lines (35 loc) · 891 Bytes
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
#include <bits/stdc++.h>
using namespace std;
#define FAST_IO ios_base::sync_with_stdio(false); cin.tie(0); cout.tie(0);
#define endl "\n"
typedef long long ll;
const ll MOD = 1000000007LL;
const ll MAX = 100010LL;
template <typename T> T gcd(T a, T b) {
if(b == 0)
return a;
return gcd(b, a % b);
}
template <typename T> T power(T x, T y, ll m = MOD) {
T ans = 1;
x %= m;
while (y > 0) {
if (y & 1LL) {
ans = (ans * x) % m;
}
y >>= 1LL;
x = (x * x) % m;
}
return (ans % m);
}
int main(){
#ifndef ONLINE_JUDGE
freopen("/Users/sahilbansal/Desktop/input.txt", "r", stdin);
freopen("/Users/sahilbansal/Desktop/output.txt", "w", stdout);
freopen("/Users/sahilbansal/Desktop/error.txt", "w", stderr);
#endif
FAST_IO;
ll t;
cin >> t;
return 0;
}