摘要: http://poj.org/problem?id=3090Visible Lattice PointsTime Limit:1000MSMemory Limit:65536KTotal Submissions:6153Accepted:3662DescriptionA lattice point ... 阅读全文
posted @ 2015-10-29 14:34 午夜阳光~ 阅读(279) 评论(0) 推荐(0) 编辑
摘要: 欧拉函数:对于一个正整数n,小于n且与n互质的正整数的个数,记做:φ(n),其中φ(1)被定义为1,但是并没有任何实质的意义。特殊性质:当n为奇数时,φ(2n)=φ(n)。当n为素数时:φ(n) = n - 1;(1)φ(n) = n * (1 - 1/p1) * (1 - 1 / p2) * ..... 阅读全文
posted @ 2015-10-29 14:20 午夜阳光~ 阅读(297) 评论(0) 推荐(0) 编辑
摘要: http://acm.zju.edu.cn/onlinejudge/showProblem.do?problemId=4677One Person GameTime Limit:2 Seconds Memory Limit:65536 KBThere is an interesting and si... 阅读全文
posted @ 2015-10-29 10:31 午夜阳光~ 阅读(161) 评论(0) 推荐(0) 编辑