![](https://img-blog.csdnimg.cn/20201014180756930.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
寒假比赛
ctltak
这个作者很懒,什么都没留下…
展开
-
寒假比赛第二场b多米诺
在2*N的一个长方形方格中,用一个1*2的骨牌排满方格。 问有多少种不同的排列方法。 例如:2 * 3的方格,共有3种不同的排法。(由于方案的数量巨大,只输出 Mod 10^9 + 7 的结果) //因为有mod,所以后面%; Input输入N(N <= 1000)Output输出数量 Mod 10^9 + 7Sample Input3Sample Output3#include ...原创 2018-02-10 14:39:41 · 141 阅读 · 0 评论 -
寒假比赛第二场权势二进制
一个十进制整数被叫做权势二进制,当他的十进制表示的时候只由0或1组成。例如0,1,101,110011都是权势二进制而2,12,900不是。当给定一个n的时候,计算一下最少要多少个权势二进制相加才能得到n。Input单组测试数据。 第一行给出一个整数n (1<=n<=1,000,000)Output输出答案占一行。Sample Input9Sample Output9这里要思考简单的办...原创 2018-02-10 14:43:26 · 136 阅读 · 0 评论 -
寒假比赛第二场两个数阶乘的最大公约数
Holidays have finished. Thanks to the help of the hacker Leha, Noora managed to enter the university of her dreams which is located in a town Pavlopolis. It's well known that universities provide stud...原创 2018-02-10 15:05:44 · 261 阅读 · 0 评论 -
寒假比赛第二场平分胡萝卜
Igor the analyst has adopted n little bunnies. As we all know, bunnies love carrots. Thus, Igor has bought a carrot to be shared between his bunnies. Igor wants to treat all the bunnies equally, and t...原创 2018-02-10 15:19:56 · 241 阅读 · 0 评论