摘要: Soldier and Bananas题目链接:http://acm.hust.edu.cn/vjudge/problem/visitOriginUrl.action?id=173141题意:给出第一个香蕉的价钱k,后买的第i个香蕉所需要的价钱就是i*k;给出手上所有的钱,求出如果要买w个香蕉还少多... 阅读全文
posted @ 2015-07-17 21:44 枫虹 阅读(133) 评论(0) 推荐(0) 编辑
摘要: The Unsolvable Problem题目链接:http://acm.hust.edu.cn/vjudge/problem/visitOriginUrl.action?id=45783题意:给定一个整数n(2 2 using namespace std; 3 int main() 4 { 5... 阅读全文
posted @ 2015-07-17 16:32 枫虹 阅读(145) 评论(0) 推荐(0) 编辑
摘要: Crossing River题目链接:http://acm.hust.edu.cn/vjudge/problem/visitOriginUrl.action?id=26251题意:N个人希望去过河,但每次只能过两个且要有一个人把船划回来接其他的人;两个人一起过河所用的时间是两个人中单独过河时间最多的... 阅读全文
posted @ 2015-07-17 15:11 枫虹 阅读(346) 评论(0) 推荐(0) 编辑
摘要: 题目: 11877 The Coco-Cola Store Once upon a time, there is a special coco-cola store. If you return three empty bottles to the shop, you’ll get a ... 阅读全文
posted @ 2015-07-17 10:23 枫虹 阅读(286) 评论(0) 推荐(0) 编辑
摘要: 题目:Description从m个不同元素中取出n(n≤m)个元素的所有组合的个数,叫做从m个不同元素中取出n个元素的组合数。组合数的计算公式如下:C(m,n) =m!/((m-n)!n!)现在请问,如果将组合数C(m,n)写成二进制数,请问转这个二进制数末尾有多少个零。Input第一行是测试样例的... 阅读全文
posted @ 2015-07-17 09:55 枫虹 阅读(218) 评论(0) 推荐(0) 编辑