/
new
109 lines (91 loc) · 3.3 KB
/
new
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
86
87
88
89
90
91
92
93
94
95
96
97
98
// Rajawat Banna
#include<bits/stdc++.h>
// Useful constants
#define INF (int)1e9
#define EPS 1e-9
#define MOD 1000000007ll
#define Pi 3.14159
// for input-output
#define fio ios_base::sync_with_stdio(false);cin.tie(NULL);cout.tie(NULL)
// iteration macros: have advantage of auto-casting and not recomputing arguments
#define rep(i,a,n) for (int i=a;i<n;i++)
#define per(i,a,n) for (int i=n-1;i>=a;i--)
#define setBit(S, j) (S |= (1 << j))
#define clearBit(S, j) (S &= ~(1 << j))
#define toggleBit(S, j) (S ^= (1 << j))
#define all(x) x.begin(), x.end()
#define clr(x) memset(x, 0, sizeof(x))
#define sortall(x) sort(all(x))
// input macro
#define IN(x,n) for(ll e=0;e<n;e++){ll y;cin>>y;x.PB(y);}
//output macro
#define print(x) for(auto it:x) cout<<it<<' '; cout<<"\n";
#define printPI(x) for(auto it:x) cout<<it.F<<' '<<it.S<<'\t'; cout<<"\n";
// shortcut for data type
#define ll long long
#define PI pair<int,int>
#define PL pair<ll,ll>
#define VI vector<int>
#define VL vector<ll>
#define VVI vector<VI>
#define VVL vector<VL>
#define VVVI vector<VVI>
#define VVVL vector<VVL>
#define VPI vector<PI>
#define VPL vector<PL>
#define PB push_back
#define PPB pop_back
#define EB emplace_back
#define MP make_pair
#define F first
#define S second
#define uset unordered_set
#define umap unordered_map
#define dbg(x, y) cout << x << " = " << y << endl
// Rajawat Banna --namespace
using namespace std;
// Rajawat Banna --const
const int Ntest = 1e5 + 5;
// Rajawat Banna --useful function
ll gcd(ll a, ll b){ll temp;while (b > 0){temp = a%b;a = b;b = temp;} return a;}
ll lcm(ll a, ll b){return a*b/gcd(a,b);}
ll fpow(ll b, ll exp, ll mod){if(exp == 0) return 1;ll t = fpow(b,exp/2,mod);if(exp&1) return t*t%mod*b%mod;return t*t%mod;}
ll divmod(ll i, ll j, ll mod){i%=mod,j%=mod;return i*fpow(j,mod-2,mod)%mod;}
// Rajawat Banna --clock funtion
clock_t time_p=clock();
void TimeTaken()
{
time_p=clock()-time_p;
cerr<<"Completion time : "<<(float)(time_p)/CLOCKS_PER_SEC<<"\n";
}
//RajawatBanna --solve function
void solve(){
}
//RajawatBanna --main function
int main() {
ios_base::sync_with_stdio(false);
cin.tie(NULL);
ll test = 1;
cin >> test;
while(test--) {
solve();
}
return 0;
}
//----------------------------------------------------------------------------
//RRRRRRRR RRR RR RRR RR RR RRR RRRRRRRR
//RR RR RR RR RR RR RR RR RR RR RR RR RR
//RR RR RR RR RR RR RR RR RR RR RR RR RR
//RRRRRRRR RR RR RR RR RR RR RR RR RR RR RR
//RR RR RRRRRRRRR RR RR RRRRRRRRR RR RR RR RRRRRRRRR RR
//RR RR RR RR RR RR RR RR RR RR RR RR RR RR
//RR RR RR RR RRRRRR RR RR RRR RRR RR RR RR
//---------------------------------------------------------------------------
//RRRRRRRR RRR RR RR RR RR RRR
//RR RR RR RR RRR RR RRR RR RR RR
//RR RR RR RR RRRR RR RRRR RR RR RR
//RRRRRRRR RR RR RR RR RR RR RR RR RR RR
//RR RR RRRRRRRRR RR RRRR RR RRRR RRRRRRRRR
//RR RR RR RR RR RRR RR RRR RR RR
//RRRRRRRR RR RR RR RR RR RR RR RR
//--------------------------------------------------------------------------