上一页 1 ··· 3 4 5 6 7 8 下一页
摘要: 这么一道经典的题就不用多解释题意了,只是这里答案要先存下来 不过看到一篇有意思的博客 关于八皇后的 n 种解法 :https://www.cnblogs.com/xinghuan/p/6061824.htm 这里给出里面关于位运算解法:这里详解 https://blog.csdn.net/Dora_ 阅读全文
posted @ 2018-07-20 14:52 谁知道你啊啊啊 阅读(170) 评论(0) 推荐(0)
摘要: A Thanks a lot for helping Harry Potter in finding the Sorcerer's Stone of Immortality in October. Did we not tell you that it was just an online game 阅读全文
posted @ 2018-07-13 15:34 谁知道你啊啊啊 阅读(298) 评论(0) 推荐(0)
摘要: B Although Haneen was able to solve the LCS problem, Dr. Ibrahim is suspicious about whether she really understands the LCS problem or not. He believe 阅读全文
posted @ 2018-07-07 16:04 谁知道你啊啊啊 阅读(423) 评论(0) 推荐(0)
摘要: 此文为以下博客做的摘要: https://blog.csdn.net/strangedbly/article/details/51137432 1、定义P-position和N-positon P表示Previous,N表示Next。 即上一个移动的人有必胜策略的局面是P-position,“先手必 阅读全文
posted @ 2018-07-06 16:19 谁知道你啊啊啊 阅读(291) 评论(0) 推荐(0)
摘要: 看完发现文档缺页。。。。。。 3.5 菲波那契数 3.14 01 串 排 序 3.14.1 链接地址 http://acm.zjut.edu.cn/网上第 1204 题 3.14.2 题目内容 将 01 串首先按长度排序,长度相同时,按 1 的个数多少进行排序,1 的个数相同时再 按 ASCII 码 阅读全文
posted @ 2018-07-06 11:15 谁知道你啊啊啊 阅读(239) 评论(0) 推荐(0)
摘要: vector 向量容器v.insert(v.begin(), num);//增加v.erase(v.begin(), v.end()); //擦除v.erase(v.begin());reverse(v.begin(), v.end()); //反向排序(从大到小)sort(v.begin(), v 阅读全文
posted @ 2018-07-06 08:09 谁知道你啊啊啊 阅读(223) 评论(0) 推荐(0)
摘要: 参考博客 https://blog.csdn.net/hcbbt/article/details/15478095 Gappu has a very busy weekend ahead of him. Because, next weekend is Halloween, and he is pl 阅读全文
posted @ 2018-05-14 19:44 谁知道你啊啊啊 阅读(151) 评论(0) 推荐(0)
摘要: 首先这一题用的是欧拉函数!!函数!!不是什么欧拉公式!! 欧拉函数求的就是题目要求的数。 关于欧拉函数的模板网上百度一下到处都是,原理也容易找,这里要介绍一下另一个强势模板。 在这一题的讨论里看到的。 上题上代码。 新年快到了,“猪头帮协会”准备搞一个聚会,已经知道现有会员N人,把会员从1到N编号, 阅读全文
posted @ 2018-05-08 21:49 谁知道你啊啊啊 阅读(181) 评论(0) 推荐(0)
摘要: 原博客 https://blog.csdn.net/wust_zzwh/article/details/52100392 建议原博客看到hdu 不要62,然后看我分割线后两道题,然后再回来看原博。 分割线 基础篇 数位dp是一种计数用的dp,一般就是要统计一个区间[le,ri]内满足一些条件数的个数 阅读全文
posted @ 2018-05-07 21:01 谁知道你啊啊啊 阅读(153) 评论(0) 推荐(0)
摘要: 原博客 http://www.cnblogs.com/cmmdc/p/7216726.html 关于约瑟夫环的核心思想的推论过程,这篇较为详细 以下均为复制粘贴 约瑟夫环问题 ( 最简单的数学解法) 基本问题描述: 已知n个人(以编号1,2,3...n分别表示)围坐在一张圆桌周围。从编号为1的人开始 阅读全文
posted @ 2018-04-22 16:47 谁知道你啊啊啊 阅读(191) 评论(0) 推荐(0)
上一页 1 ··· 3 4 5 6 7 8 下一页