摘要: Description While skimming his phone directory in 1982, Albert Wilansky, a mathematician of Lehigh University,noticed that the telephone number of his 阅读全文
posted @ 2016-09-08 21:22 邻家那小孩儿 阅读(192) 评论(0) 推荐(0) 编辑
摘要: 题意:给你数m,a,b,假设有数p,q,满足p*q<=m同时a/b<=p/q<=1,求当p*q最大的p和q的值 方法:暴力枚举 -_-|| and 优化范围 我们可以注意到在某一个m值得情况下,有一些小于m的值的质数根本不可能去到 以m=1680 a=5 b=16来举例,假设当前枚举的质数为x 那么 阅读全文
posted @ 2016-09-08 16:07 邻家那小孩儿 阅读(146) 评论(0) 推荐(0) 编辑