forked from Kaushik268mlore/CSES-PROBLEMSET
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtemplate.cpp
75 lines (72 loc) · 2.45 KB
/
template.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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
#include<bits/stdc++.h>
#include <ext/pb_ds/tree_policy.hpp>
#include <ext/pb_ds/assoc_container.hpp>
using namespace std;
using namespace __gnu_pbds;
template <typename T>
using ordered_set = tree<T, null_type, less<T>, rb_tree_tag, tree_order_statistics_node_update>;
#define ln '\n'
typedef long long ll;
// class ST{ //segment tree
// vector<int>seg;
// public:
// ST(int n){
// seg.resize(4*n+1);
// }
// void build(int ind,int low,int high,vector<int>arr){
// if(low==high){
// seg[ind]=arr[low];
// return;
// }
// int mid=(low+high)>>1;
// build(2*ind+1,low,mid,arr);
// build(2*ind+2,mid+1,high,arr);
// seg[ind]=min(seg[2*ind+1],seg[2*ind+2]);
// }
// int query(int ind,int low,int high,int l,int r){
// // there are 3 cases of
// //when the range is not overlapping
// if(r<low||high<l)return INT_MAX;
// // when the range is completely inside the query
// if(low>=l&&high<=r)return seg[ind];
// // when the query is partially overlapping
// int mid=(low+high)>>1;
// int left=query (2*ind+1,low,mid,l,r);
// int right=query(2*ind+2,mid+1,high,l,r);
// return min(left,right);
// }
// void update(int ind,int low,int high , int i,int val){
// if(low==high){
// seg[ind]=val;
// }
// int mid=(low+high)>>1;
// if(i<=mid)update(2*ind+1,low,mid,i,val);//left
// else update(2*ind+2,mid+1,high,i,val);//right
// seg[ind]=min(seg[2*ind+1],seg[2*ind+2]);//updation of the rest of the nodes.
// }
// };
// typedef tree<int,null_type,less<int>,rb_tree_tag,tree_order_statistics_node_update>os;
// struct custom_hash {
// static uint64_t splitmix64(uint64_t x) {
// // http://xorshift.di.unimi.it/splitmix64.c
// x += 0x9e3779b97f4a7c15;
// x = (x ^ (x >> 30)) * 0xbf58476d1ce4e5b9;
// x = (x ^ (x >> 27)) * 0x94d049bb133111eb;
// return x ^ (x >> 31);
// }
// size_t operator()(uint64_t x) const {
// static const uint64_t FIXED_RANDOM = chrono::steady_clock::now().time_since_epoch().count();
// return splitmix64(x + FIXED_RANDOM);
// }
// };
void solve(){
}
int32_t main(){
ios_base::sync_with_stdio(false);cin.tie(0);cout.tie(0);
int t=1;
// cin>>t;
while(t--){
solve();
}
return 0;
}