摘要: 素数 A prime is an integer greater than one whose only positive divisors are one and itself.整数的素因子分解是乘积等于此素数的集合。例如:3757208 = 2*2*2*7*13*13*397 public cl 阅读全文
posted @ 2016-02-19 22:36 hopskin1 阅读(148) 评论(0) 推荐(0) 编辑
摘要: 赌徒赢得机会有多大? public class Gambler { public static void main(String[] args) { // Run T experiments that start with $stake and terminate on $0 and $goal i 阅读全文
posted @ 2016-02-19 22:17 hopskin1 阅读(549) 评论(0) 推荐(0) 编辑
摘要: public class Binary { public static void main(String[] args) { // Print binary representation of N. int N = Integer.parseInt(args[0]); int v = 1; whil 阅读全文
posted @ 2016-02-19 21:58 hopskin1 阅读(213) 评论(0) 推荐(0) 编辑