-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmo.cpp
More file actions
96 lines (61 loc) · 1.43 KB
/
Copy pathmo.cpp
File metadata and controls
96 lines (61 loc) · 1.43 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
84
85
86
87
88
89
90
91
92
93
94
95
96
#include<bits/stdc++.h>
using namespace std;
#define sz(x ) x.size()
#define mem(x ,y) memset(x , y , sizeof x )
#define all(a ) a.begin() , a.end()
#define pb push_back
#define mp make_pair
#define ff first
#define ss second
#define pii pair<int , int >
#define dbg(args...) do { cerr << #args << ' ' ; print(args); } while(0); cerr<< endl;
// loop
#define forn(i,a,n ) for(int i = a ; i <= n ; i++ )
#define rep(i ,n ) for(int i = 0 ; i < n ; i++ )
#define repi(i ,n ) for(int i = 1 ; i <= n ; i++ )
#define si(a) scanf("%d",&a )
#define sl(a) scanf("%I64d",&a )
#define sd(a) scanf("%lf",&a )
#define sii(a , b) scanf("%d %d",&a , &b )
#define sdd(a , b) scanf("%lf %lf",&a , &b )
#define sll(a , b) scanf("%I64d %I64d",&a , &b )
template< typename T >
void print(const T& v) {
cerr << v << ' ' ;
}
template< typename T1, typename... T2 >
void print( const T1& first, const T2&... rest ){
print(first);
print(rest...) ;
}
//code from here
typedef long long ll ;
#define M 500123
struct range {
int l , r , id;
range () { } ;
range(int a, int b , int c ) {
l = a ;
r = b;
id = c ;
}
} ;
range query[M+2] ;
int block ;
bool cmp( range x ,range y ) {
if(x.l/block != y.l/block ) return x.l/block <= y.l/block ;
return x.r <= y.r ;
}
void func(int left , int right ) {
while(st < left ) {
}
while(st > left ) {
}
while(en < right ){
}
while(en > right) {
}
}
int main() {
return 0 ;
}