摘要: 互质定义: 公约数只有1的两个数叫做互质数。 (1和任意数互质,两个相等的非1的数,不互质) http://res.tongyi.com/resources/old_article/student/1380.html 欧拉函数: 欧拉函数是小于等于n的正整数中与n互质的数的数目(φ(1)=1)。、 阅读全文
posted @ 2017-12-05 20:39 NeilZhang 阅读(164) 评论(0) 推荐(0) 编辑
摘要: 1、想到单例模式,根据经验写的代码如下: public class Siglton{ private static Siglton instance; private Siglton(){} private static Siglton getInstance(){ if(instance == n 阅读全文
posted @ 2017-12-05 19:59 NeilZhang 阅读(901) 评论(0) 推荐(0) 编辑