上一页 1 ··· 4 5 6 7 8
摘要: 原博客 https://www.cnblogs.com/linyujun/p/5194184.html 建议先去理解好逆元的定义和乘法逆元(百度百科),不然会浪费很多时间还搞不懂别人在说什么。 简而言之,b的逆元inv(b)就是b的倒数。 以下内容均为复制粘贴 ACM数论之旅6 数论倒数,又称逆元( 阅读全文
posted @ 2018-04-22 13:49 谁知道你啊啊啊 阅读(282) 评论(0) 推荐(0) 编辑
摘要: Max Sum Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 279144 Accepted Submission(s): 66274 Prob 阅读全文
posted @ 2018-04-10 20:48 谁知道你啊啊啊 阅读(141) 评论(0) 推荐(0) 编辑
摘要: 转自https://blog.csdn.net/jiange_zh/article/details/50198097 在算法竞赛中,我们常常需要用到一个“无穷大”的值,对于我来说,大多数时间我会根据具体问题取一个99999999之类的数(显得很不专业啊!) 在网上看别人代码的时候,经常会看到他们把I 阅读全文
posted @ 2018-04-09 18:19 谁知道你啊啊啊 阅读(218) 评论(0) 推荐(0) 编辑
摘要: 有向图的连通分量的求解思路 kosaraju算法 逛了很多博客,感觉都很难懂,终于找到一篇能看懂的,摘要记录一下 原博客https://www.cnblogs.com/nullzx/p/6437926.html 关于连通分量是什么自行百度,这里主要说明连通分量的求解方法 基本思路:第一次DFS得出顶 阅读全文
posted @ 2018-04-09 18:06 谁知道你啊啊啊 阅读(6605) 评论(0) 推荐(0) 编辑
摘要: The inversion number of a given number sequence a1, a2, ..., an is the number of pairs (ai, aj) that satisfy i < j and ai > aj.For a given sequence of 阅读全文
posted @ 2018-04-03 19:41 谁知道你啊啊啊 阅读(185) 评论(0) 推荐(0) 编辑
摘要: In the game of DotA, Pudge’s meat hook is actually the most horrible thing for most of the heroes. The hook is made up of several consecutive metallic 阅读全文
posted @ 2018-03-26 18:54 谁知道你啊啊啊 阅读(114) 评论(0) 推荐(0) 编辑
摘要: Problem Description Alice gets two sequences A and B. A easy problem comes. How many pair of sequence A' and sequence B' are same. For example, {1,2} 阅读全文
posted @ 2018-03-19 18:53 谁知道你啊啊啊 阅读(109) 评论(0) 推荐(0) 编辑
摘要: An earthquake takes place in Southeast Asia. The ACM (Asia Cooperated Medical team) have set up a wireless network with the lap computers, but an unex 阅读全文
posted @ 2018-03-13 20:36 谁知道你啊啊啊 阅读(181) 评论(0) 推荐(0) 编辑
摘要: 参考博客https://www.cnblogs.com/dongsheng/archive/2012/08/18/2645594.html Problem Description s(n)是正整数n的真因子之和,即小于n且整除n的因子和.例如s(12)=1+2+3+4+6=16.如果任何数m,s(m 阅读全文
posted @ 2018-03-12 16:08 谁知道你啊啊啊 阅读(188) 评论(0) 推荐(0) 编辑
摘要: A number is called quasibinary if its decimal representation contains only digits 0 or 1. For example, numbers 0, 1, 101, 110011 — are quasibinary and 阅读全文
posted @ 2018-01-19 22:25 谁知道你啊啊啊 阅读(250) 评论(0) 推荐(0) 编辑
上一页 1 ··· 4 5 6 7 8