代码改变世界

随笔分类 -  Euler Program

【欧拉题四】三位数乘积所得的最大回文数

2012-03-10 02:11 by 撞破南墙, 411 阅读, 收藏, 编辑
摘要: 题目A palindromic number reads the same both ways. The largest palindrome made from the product of two 2-digit numbers is 9009 = 9199. Find the largest palindrome made from the product of two 3-digit numbers.代码usingSystem;usingSystem.Collections.Generic;/***从X1=999,X2=999*判断乘积是否回文转换成字符串,*依次减X1和X2**... 阅读全文

【欧拉3】最大质因数

2012-03-09 19:05 by 撞破南墙, 477 阅读, 收藏, 编辑
摘要: 问题描述: The prime factors of 13195 are 5, 7, 13 and 29. What is the largest prime factor of the number 600851475143 ? public class Q3 { /// <summary> /// 取得最大的质因数 ... 阅读全文

Problem 2

2012-03-08 06:12 by 撞破南墙, 313 阅读, 收藏, 编辑
摘要: 阅读全文
点击右上角即可分享
微信分享提示