摘要: A Pythagorean triplet is a set of three natural numbers, a b c, for which, a2 + b2 = c2For example, 32 + 42 = 9 + 16 = 25 = 52.There exists exactly one Pythagorean triplet for which a + b + c = 1000.Find the product abc.我的解题思路是:1. 理解题意:三个条件: 1)a2 + b2 = c2;2) a<b<c;3)a + b + c = 1000.2. 思路:首先, 阅读全文
posted @ 2011-02-27 23:20 能巴 阅读(188) 评论(0) 推荐(0)
摘要: 来自:c++ containers cheat sheet 阅读全文
posted @ 2011-02-27 21:34 能巴 阅读(250) 评论(0) 推荐(0)
摘要: 这篇blog的意义在于,意识到有cheat sheet的存在并能在需要的时候加以合理使用。程序员的工作,更多的是在需要的时候快速查找到需要的知识点,并在经验的指导下恰当的使用一个从未涉及或用过的toolkit,API或者任何东西。这些cheat sheet就是在这种需求应运而生的东西。先从收藏起 程序员小抄大全 开始。 阅读全文
posted @ 2011-02-27 21:29 能巴 阅读(148) 评论(0) 推荐(0)