-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathTemp.cpp
More file actions
83 lines (75 loc) · 1.76 KB
/
Temp.cpp
File metadata and controls
83 lines (75 loc) · 1.76 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
#include<bits/stdc++.h>
using namespace std;
#define ll long long
#define ull unsigned long long
#define pb push_back
#define emb emplace_back
#define mp make_pair
#define ff first
#define ss second
#define vi vector<int>
#define si set<int>
#define pi pair<int,int>
#define FOR(i,n) for(int i=0;i<n;i++)
#define min3(a,b,c) min(a,min(b,c))
#define max3(a,b,c) max(a,max(b,c))
#define min4(a,b,c,d) min(a,min(b,min(c,d)))
#define max4(a,b,c,d) max(a,max(b,max(c,d)))
#define max5(a,b,c,d,e) max(max3(a,b,c),max(d,e))
#define min5(a,b,c,d,e) min(min3(a,b,c),min(d,e))
#define fast ios_base::sync_with_stdio(false);cin.tie(NULL);
#define SP(x) fixed<<setprecision(x)
#define fWrite freopen("out.txt", "w", stdout);//to write the output in a txt file
#define fRead freopen("in.txt", "r", stdin);
#define PI 2*acos(0.0)
#define asi cout<<"Check"<<endl
#define bye return 0
#define ok cout<<"OK"<<endl
#define NL "\n"
//lower_bound == Shoman othoba prothom boro element ta return korbe//iterator return kore
//upper bound mane first boro element return korbe
//string s(n,'a');
//ans+=string(r,'R');
ll Digits(ll a)
{
return(floor(log10(a))+1);
}
ll BMod(ll B,ll P,ll M)
{
ll R=1;
B=B%M;
while(P)
{
if(P&1)
R=(R*B)%M;
P >>= 1;
B=(B*B)%M;
}
return R;
}
ll POW(ll B,ll P)
{
ll R=1;
while(P)
{
if(P&1)
R=R*B;
B=B*B;
P>>=1;
}
return R;
}
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);
}
int main()
{
fast
}