上一页 1 ··· 5 6 7 8 9 10 11 12 13 ··· 15 下一页
摘要: 转自https://blog.csdn.net/lyy289065406/article/details/6683250对于这种标记,不考虑线段树,而是有技巧的1.首先将小蛋糕的size记录在数组sizeNum[size]++这样做就不用排序什么了,因为数据小在循环时... 阅读全文
posted @ 2018-04-10 17:12 LandingGuys 阅读(87) 评论(0) 推荐(0) 编辑
摘要: 题目http://acm.hdu.edu.cn/showproblem.php?pid=2209转自https://blog.csdn.net/cillyb/article/details/53002362从左往右翻,如果当前牌左边为1,此时必须翻牌。一直翻到最后一张... 阅读全文
posted @ 2018-04-10 16:43 LandingGuys 阅读(106) 评论(0) 推荐(0) 编辑
摘要: 题目http://acm.hdu.edu.cn/showproblem.php?pid=1043 八数码转自https://blog.csdn.net/thudaliangrx/article/details/50659007http://blog.sina.com.... 阅读全文
posted @ 2018-04-09 21:02 LandingGuys 阅读(213) 评论(0) 推荐(0) 编辑
摘要: http://acm.hdu.edu.cn/showproblem.php?pid=1133乘法int len;int c[1000];void multipul(int a[],int b[])//数是逆着记录的{ for(int i=0;in如果有这么一个序... 阅读全文
posted @ 2018-04-09 19:41 LandingGuys 阅读(132) 评论(0) 推荐(0) 编辑
摘要: 转自http://www.mamicode.com/info-detail-2019082.html#includeusing namespace std;map pos;char st[11], en[11];int n;bool OK(){ for(int ... 阅读全文
posted @ 2018-04-08 21:37 LandingGuys 阅读(120) 评论(0) 推荐(0) 编辑
摘要: 转自https://blog.csdn.net/Georgebillion/article/details/78088627?locationNum=3&fps=1G.Finding the Radius for an Inserted Circle(运算几何,二分)... 阅读全文
posted @ 2018-04-08 20:07 LandingGuys 阅读(259) 评论(0) 推荐(0) 编辑
摘要: 转自https://blog.csdn.net/libin66/article/details/52132641 给定n个线段[l,r],问哪些区间正好被线段覆盖了k次。输出这样的区间个数,以及区间 进去一个区间(扫描到L) num++,退出时 (扫描到R)num--; 令num=0 如果有三个区间 阅读全文
posted @ 2018-04-07 18:23 LandingGuys 阅读(115) 评论(0) 推荐(0) 编辑
摘要: 转自https://blog.csdn.net/libin66/article/details/52132641给定n个线段[l,r],问哪些区间正好被线段覆盖了k次。输出这样的区间个数,以及区间进去一个区间(扫描到L) num++,退出时 (扫描到R)num... 阅读全文
posted @ 2018-04-07 18:23 LandingGuys 阅读(36) 评论(0) 推荐(0) 编辑
摘要: 首先看unique的作用是“去掉”容器中相邻元素的重复元素(不一定要求数组有序),它会把重复的元素添加到容器末尾(所以数组大小并没有改变),而返回值是去重之后的尾地址(转自https://www.cnblogs.com/hua-dong/p/7943983.html)... 阅读全文
posted @ 2018-04-07 16:42 LandingGuys 阅读(165) 评论(0) 推荐(0) 编辑
摘要: 建议先看https://www.cnblogs.com/hongshijie/p/7727000.html再看https://blog.csdn.net/xiaofei_it/article/details/17042651 阅读全文
posted @ 2018-04-07 15:56 LandingGuys 阅读(79) 评论(0) 推荐(0) 编辑
上一页 1 ··· 5 6 7 8 9 10 11 12 13 ··· 15 下一页