-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path638B.cpp
54 lines (39 loc) · 1.7 KB
/
638B.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
// im__back - Shreyas Mante
#include<bits/stdc++.h>
using namespace std;
/*/-----------------------------TC && FASTIO--------------------------------/*/
#define nuke ll t; cin>>t; while(t--)
#define nuke_google ll t; cin>>t; for(ll i_1=1;i_1<=t;i_1++)
#define case_google cout<<"Case #";
#define imback ios::sync_with_stdio(0); cin.tie(0); cout.tie(0);
/*/-----------------------------MODS&CONSTS---------------------------------/*/
#define MOD 1000000007
#define pi 3.1415926535
/*/-----------------------------MODS&CONSTS--------------------------------/*/
#define sampleio freopen("input.txt", "r", stdin);freopen("output.txt", "w", stdout);
/*/-----------------------------DEFINES------------------------------------/*/
#define ll long long int
#define ld long double
#define pb push_back
#define mk make_pair
#define fi first
#define se second
#define ad adjacent_difference //(a,a+6,newarr);// store adjacent diff of array
#define ita iota //(a,a+8,100) // store inc values (100,101,102..)
/*/-----------------------------INLINE FUNCTIONS--------------------------/*/
inline ll gcd(ll a, ll b) {if (b == 0) return a; return gcd(b, a % b);}
inline ll lcm(ll a, ll b) {return (a / gcd(a, b) * b);}
inline bool isprime(ll n) {ll i; for (i = 2; i <= sqrt(n); i++) {if (n % i == 0)return false;} return true;}
/*/-----------------------------WRK FUNCTIONS--------------------------/*/
ll factorial[3000007] = {0};
void facto() {
factorial[0] = 1; factorial[1] = 1; for(int i = 2; i < 3000007; i++)factorial[i] = (factorial[i-1]*i)%MOD;
}
/*/-----------------------------NUKE BEGINS-------------------------------/*/
signed main()
{
imback;
nuke
{
}
}