![](https://img-blog.csdnimg.cn/20201014180756927.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
算法
iteye_18781
这个作者很懒,什么都没留下…
展开
-
Problem19
[code="java"]package com.shui.mu.yao.io.algorithm;import java.util.Calendar;/** * * @author shuimuqinghua77 @date 2011-12-9上午09:58:49 */public class Problem19 { public static void...原创 2011-12-09 14:07:29 · 88 阅读 · 0 评论 -
Problem21
[code="java"]Problem 2105 July 2002Let d(n) be defined as the sum of proper divisors of n (numbers less than n which divide evenly into n).If d(a) = b and d(b) = a, where a b, then a and b ar...原创 2012-03-11 20:44:30 · 78 阅读 · 0 评论 -
Problem22
[code="java"]Using names.txt (right click and 'Save Link/Target As...'), a 46K text file containing over five-thousand first names, begin by sorting it into alphabetical order. Then working out the al...原创 2012-03-17 23:13:09 · 111 阅读 · 0 评论 -
Problem23
[code="java"]A perfect number is a number for which the sum of its proper divisors is exactly equal to the number. For example, the sum of the proper divisors of 28 would be 1 + 2 + 4 + 7 + 14 = 28, w...原创 2012-03-18 13:29:02 · 116 阅读 · 0 评论 -
Problem15
[code="java"]package com.yao.Algorithms;import java.util.HashMap;import java.util.Map;/** * * @author shuimuqinghua77 @date 2011-11-29 * */public class Problem15 { private static ...原创 2011-11-29 23:28:58 · 88 阅读 · 0 评论 -
Problem16
[code="java"]package com.shui.mu.yao.io.algorithm;/** * * @author shuimuqinghua77 @date 2012-12-02 * */public class Problem16 { public static void main(String[] args) throws Exception...原创 2011-12-02 15:32:23 · 106 阅读 · 0 评论 -
Problem18/Problem67
[code="java"]package com.yao.Algorithms;import java.io.BufferedReader;import java.io.File;import java.io.FileReader;import java.io.Reader;/** * * @author shuimuqinghua77 @date 2011-...原创 2011-12-04 20:20:27 · 105 阅读 · 0 评论 -
Problem24
[code="java"]package com.yao.Algorithms;import java.util.ArrayList;import java.util.List;/** * * @author shuimuqinghua77 @date 2012-4-26下午02:01:16 * */public class Problem24 {/**...原创 2012-04-26 14:12:00 · 93 阅读 · 0 评论 -
Problem25
[code="java"]package com.yao.Algorithms;import java.math.BigInteger;/** * * @author shuimuqinghua77 @date 2012-4-26下午02:33:04 * */public class Problem25 {public static void main(S...原创 2012-04-26 16:33:53 · 94 阅读 · 0 评论 -
Problem14
[code="java"]package com.shui.mu.yao.io.algorithm;public class Problem14 { public static void main(String[] args) { long starttime = System.currentTimeMillis(); int start = 640000;/**10:...原创 2011-11-29 11:37:20 · 76 阅读 · 0 评论 -
Problem13_1
[code="java"]package yao.taobao.jj;public class Problem13 { public static void main(String[] args) { long start = System.currentTimeMillis(); String str = "37107287533902102798797998220837...原创 2011-11-21 14:07:43 · 81 阅读 · 0 评论 -
Problem20
[code="java"]package com.yao.shuimu.euler;import java.util.ArrayList;import java.util.List;/** * Created by IntelliJ IDEA. * User: shuimuqinghua77 * Date: 11-12-15 * Time: 下午1:25 *...原创 2011-12-15 14:09:38 · 93 阅读 · 0 评论 -
Problem7
[code="java"]package com.shui.mu.yao.io.algorithm;import java.util.ArrayList;import java.util.Arrays;import java.util.List;/** * * @author shuimuqinghua77 @date 2011-11-3上午10:56:33 ...原创 2011-11-03 11:25:19 · 115 阅读 · 0 评论 -
Problem8
[code="java"]package com.shui.mu.yao.io.algorithm;/** *Find the greatest product of five consecutive digits in the 1000-digit number.73167176531330624919225119674426574742355349194934969...原创 2011-11-03 12:38:38 · 137 阅读 · 0 评论 -
Problem9
[code="java"]package com.shui.mu.yao.io.algorithm;import java.util.Arrays;/** * * @author shuimuqinghua77 @date 2011-11-3下午03:31:30 *//** * A Pythagorean triplet is a set of three n...原创 2011-11-03 16:04:37 · 61 阅读 · 0 评论 -
Problem10
[code="java"]package com.shui.mu.yao.io.algorithm;import java.util.ArrayList;import java.util.Arrays;import java.util.List;/** * * @author shuimuqinghua77 @date 2011-11-3下午07:44:42 ...原创 2011-11-03 20:14:36 · 90 阅读 · 0 评论 -
Problem11
[code="java"]package com.yao.Algorithms;import java.util.ArrayList;import java.util.List;/** * * @author shuimuqinghua77 @date 2011-11-6 * *//** * In the 2020 grid below, four n...原创 2011-11-06 19:38:19 · 63 阅读 · 0 评论 -
Problem12
[code="java"]package com.shui.mu.yao.io.algorithm;import java.util.ArrayList;import java.util.List;public class Problem12 { public static void main(String[] args) { long start = Syste...原创 2011-11-07 20:04:02 · 90 阅读 · 0 评论 -
Problem13
[code="java"]package com.yao.Algorithms;import java.util.Arrays;public class Problem13 { public static void main(String[] args) { String str = "37107287533902102798797998220837590246510...原创 2011-11-19 23:51:28 · 82 阅读 · 0 评论 -
Problem26
A unit fraction contains 1 in the numerator. The decimal representation of the unit fractions with denominators 2 to 10 are given:1/2 = 0.51/3 = 0.(3)1/4 = 0.251/5 = 0.21/6 = 0.1(6)...原创 2013-02-06 17:08:05 · 145 阅读 · 0 评论