03 2018 档案

摘要:Problem Description A school bought the first computer some time ago(so this computer's id is 1). During the recent years the school bought N-1 new co 阅读全文
posted @ 2018-03-30 00:32 stackupdown 阅读(125) 评论(0) 推荐(0) 编辑
摘要:硬币组合方案数 题目描述: 小Q非常富有,拥有非常多的硬币,小Q的拥有的硬币是有规律的,对于所有的非负整数K,小Q恰好> 各有两个数值为2^k,的硬币,所以小Q拥有的硬币是1,1,2,2,4,4……,小Q卖东西需要支付元钱,请问小Q想知道有多少种组合方案。 输入:一个n (1<=n<=10^18), 阅读全文
posted @ 2018-03-25 16:18 stackupdown 阅读(605) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示