摘要: Problem 9: A Pythagorean triplet is a set of three natural numbers,abc, for which, a2+b2=c2 For example, 32+ 42= 9 + 16 = 25 = 52. There exists exactly one Pythagorean triplet for whicha+b+c= 1000. Find the productabc.问题9: 寻找和为1000的毕达哥拉斯三元数(勾股数)。思路: a2+b2=c2<a2+2ab+b2=(a+b)2 c<a+b,a+b+c=1000, 阅读全文
posted @ 2011-05-31 09:45 class 阅读(324) 评论(0) 推荐(0) 编辑