摘要: 巧妙地预处理 + 扫描线 https://blog.csdn.net/weixin_41380961/article/details/90083696 别人的代码,平台有问题,我没写 https://vjudge.net/problem/UVALive-3905 #include<stdio.h> 阅读全文
posted @ 2020-03-21 20:51 SunCY 阅读(118) 评论(0) 推荐(0) 编辑
摘要: 结构体+优先队列+贪心 #include <iostream> #include <cstdio> #include <cstring> #include <limits> //#include <stack> #include<queue> #include <algorithm> #define 阅读全文
posted @ 2020-03-21 20:42 SunCY 阅读(88) 评论(0) 推荐(0) 编辑
摘要: 贪心,有一些点少不留意就会wa #include <iostream> #include <cstdio> #include <cstring> #include <limits> //#include <stack> #include<queue> #include <algorithm> #de 阅读全文
posted @ 2020-03-21 20:40 SunCY 阅读(128) 评论(0) 推荐(0) 编辑
摘要: 贪心+预处理 有个点 就是写错了,找了半天哇。 R是double类型不是int类型! #include <iostream> #include <cstdio> #include <cstring> #include <limits> #include<cmath> #include <algori 阅读全文
posted @ 2020-03-21 20:10 SunCY 阅读(143) 评论(0) 推荐(0) 编辑
摘要: 并查集+贪心 https://vjudge.net/contest/362147#problem/C #include <iostream> #include <cstdio> #include <cstring> #include <limits> #include <algorithm> #de 阅读全文
posted @ 2020-03-21 20:01 SunCY 阅读(89) 评论(0) 推荐(0) 编辑