摘要: #include<bits/stdc++.h> #define LL long long #define pii pair<int,int> #define mp make_pair using namespace std; const int maxx = 2e5+6; const double alpha = 0.75; struct node{ int l,ml,mr,r; int val[ 阅读全文
posted @ 2019-08-31 21:49 bluefly-hrbust 阅读(251) 评论(0) 推荐(0) 编辑
摘要: 算法假了,我想的是通过枚举x,删除y的影响,这样答案第一个是没有任何问题的,但是第二个会算重复。 因为我枚举每一个x的时候,得到的y,而算另外一个x的时候,可能已经通过其他的点选到了这个点y这就有点麻烦了。暂时没想好怎么处理。 阅读全文
posted @ 2019-08-31 10:02 bluefly-hrbust 阅读(165) 评论(0) 推荐(0) 编辑
摘要: #include<bits/stdc++.h> using namespace std; int main(){ while(true) { system("data.exe>data.in"); system("ac.exe<data.in>ac.out"); system("wa.exe<data.in>wa.out"); if(system("fc ac.out wa.out")) { sy 阅读全文
posted @ 2019-08-31 09:48 bluefly-hrbust 阅读(203) 评论(0) 推荐(0) 编辑