数学规律题型
zl_666
这个作者很懒,什么都没留下…
展开
-
月之数
Problem Description 当寒月还在读大一的时候,他在一本武林秘籍中(据后来考证,估计是计算机基础,狂汗-ing),发现了神奇的二进制数。 如果一个正整数m表示成二进制,它的位数为n(不包含前导0),寒月称它为一个n二进制数。所有的n二进制数中,1的总个数被称为n对应的月之数。 例如,3二进制数总共有4个,分别是4(100)、5(101)、6(110)、7(111),他们中原创 2015-08-23 22:12:54 · 523 阅读 · 0 评论 -
Friend
Problem Description Friend number are defined recursively as follows. (1) numbers 1 and 2 are friend number; (2) if a and b are friend numbers, so is ab+a+b; (3) only the numbers defined in (1) an原创 2015-08-24 09:42:10 · 256 阅读 · 0 评论 -
C hicken and rabbit s
题目描述 Chicken and rabbits are in a same cage. As we all know, chicken has two legs but rabbit has four. Now we know the number of legs in the cage is A, please tell me how many animals may in the c原创 2015-08-25 19:51:57 · 345 阅读 · 0 评论 -
矩形A + B
Problem Description 给你一个高为n ,宽为m列的网格,计算出这个网格中有多少个矩形,下图为高为2,宽为4的网格. Input 第一行输入一个t, 表示有t组数据,然后每行输入n,m,分别表示网格的高和宽 ( n Output 每行输出网格中有多少个矩形. Sample Input 2 1 2原创 2015-08-20 19:47:32 · 332 阅读 · 0 评论 -
Baskets of Gold Coins
Problem Description You are given N baskets of gold coins. The baskets are numbered from 1 to N. In all except one of the baskets, each gold coin weighs w grams. In the one exceptional basket, eac原创 2015-09-12 10:36:00 · 544 阅读 · 0 评论