-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathC Library.cpp
More file actions
42 lines (31 loc) · 921 Bytes
/
C Library.cpp
File metadata and controls
42 lines (31 loc) · 921 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
// Delete the dynamically allocated memory
#include<bits/stdc++.h>
using namespace std;
#define ff first
#define ss second
#define pb push_back
#define pr pair<long long,long long>
#define mp(a,b) make_pair(a,b)
#define vr vector<long long>
#define mod1 1000000007
#define mod2 998244353
#define inf 1e18
#define ps(x,y) fixed<<setprecision(y)<<x
#define fill(a,b) memset(a, b, sizeof(a))
#define mk(arr,n,type) type *arr=new type[n];
#define ll long long
#define ld long double
#define w(x) int x; cin>>x; while(x--)
ll power(ll base, ll exp) {
ll res=1;
while(exp>0) {
if(exp%2==1) res=(res*base);
base=(base*base);
exp/=2;
}
return res;
}
int main()
{
ios_base::sync_with_stdio(false);
cin.tie(NULL);