摘要:
题目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**... 阅读全文
随笔档案-2012年03月
【欧拉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> /// 取得最大的质因数 ... 阅读全文
统计数字
2012-03-03 04:19 by 撞破南墙, 593 阅读, 收藏, 编辑
摘要:
题目 一本书的页码从自然数1开始顺序编码直到自然数n。书的页码按照通常的习惯编排,每个页码都不含多余的前导数字0。例如第6页用6表示而不是06或006。数字统计问题要求对给... 阅读全文