-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtemplate.cpp
More file actions
39 lines (34 loc) · 921 Bytes
/
template.cpp
File metadata and controls
39 lines (34 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
#include<bits/stdc++.h>
#define MAX 1000050
#define INF 0x3f3f3f3f
using namespace std;
typedef long long ll;
int n;
struct node{ll x, y;}
points[MAX];
ll Abs(ll x){return x >= 0 ? x : (-x);}
bool cmp(node a, node b){return a.x == b.x ? a.y < b.y : a.x < b.x;}
void test1(int idx){
ll mx = -INF;
scanf("%lld%lld", &points[idx].x, &points[idx].y);
mx = max(mx, points[idx].y);
sort(points + 1, points + n + 1, cmp);
}
char grid[MAX][MAX];
int dp[MAX][MAX][MAX];
void test2(){
memset(dp, -1, sizeof dp);
vector<int> price(MAX, -1), pages(MAX, -1);
double max = *max_element(price.begin(), price.end());
vector<vector<int> > dp(n+1,vector<int>(MAX+1,0));
}
int main(){
ios_base::sync_with_stdio(false);
cin.tie(NULL); cout.tie(NULL);
freopen("input.in", "r", stdin);
freopen("output.out", "w", stdout);
int t; scanf("%d", &t);
while(t--){
//solve
}
}