C++
honze
这个作者很懒,什么都没留下…
展开
-
Cut Tiles
Problem Enzo is doing renovation for his new house. The most difficult part is to buy exactly the right number of tiles. He wants N tiles of different sizes. Of course they have to be cut from th原创 2014-08-20 18:33:19 · 215 阅读 · 0 评论 -
整数二分查找模板
template int binary_search(T a[], int low, int high, JudgeFuncType judge) { int ans = -1, mid; while (low <= high) { mid = (low >> 1) + (high >> 1); if (judge(mid)) // suc原创 2014-08-20 21:58:28 · 205 阅读 · 0 评论 -
Addition
Problem Six years ago, a robot, Bob, with infant's intelligence has been invented by an evil scientist, Alice. Now the robot is six years old and studies in primary school. Addition is the first o原创 2014-08-20 11:41:19 · 589 阅读 · 0 评论