[HDU 5618]Jam's problem again——CDQ分治
题目传送门解题思路本题为裸的三维偏序,直接用CDQ分治解。#include<cstdio>
#include<cstring>
#include<algorithm>
using namespace std;
const int maxn=100005;
struct jz{
int x,y,z,id;
bool operator==(const jz&b){return x==b.
原创
2017-05-14 21:41:19 ·
460 阅读 ·
0 评论