C - Problem C
Time Limit: 2000/1000MS (Java/Others) Memory Limit: 128000/64000KB (Java/Others)
SubmitStatus
Problem Description
Consider an infinite complete binary tree where the root nod...
分类:
其他好文 时间:
2014-08-30 08:49:29
阅读次数:
232
题解:找规律……#include int main(){ int n; while(~scanf("%d",&n)){ if((n-2)%4!=0)puts("no"); else puts("yes"); }return 0;}
分类:
其他好文 时间:
2014-08-30 08:45:09
阅读次数:
159
移动网络时代重塑了大众的衣食住行习惯,同时亦潜移默化影响着人们对多元化兴趣对象的判断。因此,“大数据”随即也从各个层面“入侵”人们的生活,以对数据、规律的探究为基础,并启动有效干预来满足大众需求,正是大数据时代的显著特色。文/张书乐网络文学领域也不例外,在公..
分类:
其他好文 时间:
2014-08-29 16:20:49
阅读次数:
518
1.1 31 1 1 33 1 1 31 3 2 1 1 31 1 1 3 1 2 2 1 1 33 1 1 3 1 1 2 2 2 1 1 3……第一行是默认的1 3;从第二行开始 一个1 一个3 所以是1 1 1 3第三行 三个1 一个三 所以是3 1 1 3第四行 一个3 两个1 一个3 所以...
分类:
其他好文 时间:
2014-08-29 00:07:26
阅读次数:
334
题目链接:http://acm.zju.edu.cn/onlinejudge/showProblem.do?problemCode=3629
思路:找规律,发现符合要求的数为
[0,1)
[4,9)
[16,25)
[36,49)
…………
[n^2 , (n+1)^2)
发现 n^2 到(n+1)^2(n为偶数)前开后闭的区间为符合要求的数,然后发现(n+1)*(n+1)-n*n...
分类:
其他好文 时间:
2014-08-28 22:49:06
阅读次数:
311
题目链接
题意:求第n个斐波那契数的递归次数MOD b
思路:用矩阵快速幂求斐波那契数列,然后打表找出递归次数的规律为f(n) = 2 * F(n) - 1(F(n)为斐波那契数)。
代码:
#include
#include
#include
#include
#include
typedef long long ll;
using namespace...
分类:
其他好文 时间:
2014-08-28 21:14:46
阅读次数:
270
从下面这一有规律的串中,查找第i(1 ≤ i ≤ 2147483647)个为的数是什么?
11212312341234512345612345671234567812345678912345678910123456789101112345678910......
二分
#include
#include
#include
#include
#include
using namespa...
分类:
其他好文 时间:
2014-08-28 11:30:49
阅读次数:
176
Description
Box Game
There are two identical boxes. One of them contains n balls, while the other box contains one ball. Alice and Bob invented a game with the boxes and bal...
分类:
其他好文 时间:
2014-08-28 09:41:09
阅读次数:
189
给出一个数字塔,然后求沿着数字之间的边走,给出两个数字,问其路径最短的长度是多少。看似一条搜索题目,只是有一定做题经验的人都知道,这个不是搜索题,直接搜索肯定超时。这个是依据规律计算的数学题目。我这里的思路是一层一层往下搜,利用层间的规律加速,实现层跃,到了同一层,或者同一个对角列的时候就能够直接计...
分类:
其他好文 时间:
2014-08-28 09:34:39
阅读次数:
156