括号配对问题时间限制:3000ms | 内存限制:65535KB难度:3描述现在,有一行括号序列,请你检查这行括号是否配对。输入第一行输入一个数N(0 3 using namespace std; 4 #include 5 #include 6 int main() 7 { 8 int n;...
分类:
其他好文 时间:
2015-02-27 13:29:23
阅读次数:
104
Binary String Matching时间限制:3000ms | 内存限制:65535KB难度:3描述Given two strings A and B, whose alphabet consist only ‘0’ and ‘1’. Your task is only to tell ho...
分类:
其他好文 时间:
2015-02-27 13:24:23
阅读次数:
141
链接:click here
题意:
描述 You want to processe a sequence of n distinct integers by swapping two adjacent sequence elements until the sequence is sorted in ascending order. Then how many times it nee...
分类:
编程语言 时间:
2015-02-25 21:10:08
阅读次数:
153
链接:click here
题意:
描述 路过这的20岁生日就要到了,他当然很开心,可是他突然想到一个问题,是不是每个人从出生开始,到达20岁生日时所经过的天数都是一样的呢?似乎并不全都是这样,所以他想请你帮忙计算一下他和他的几个朋友从出生到达20岁生日所经过的总天数,让他好来比较一下。
输入一个数T,后面T行每行有一个日期,格式是YYYY-MM-DD。如我的生日是1988-03-07。...
分类:
其他好文 时间:
2015-02-25 19:53:54
阅读次数:
153
链接:click here
题意:
描述
大家一定见过这种题目:给你一些数请找出这些数之间的规律,写出下一个满足该规律的数。
比如:2 5 10 17 26,则可以看出这些数符合n*n+1这个通项公式,则下一个数为37。
这种通项公式不只一个,所以答案是不唯一的。但如果已知了N个数,且已知其通项公式是一个次数小于N的多项式,则答案就唯一确定了。
现在给你一个数列,请找出规律...
分类:
其他好文 时间:
2015-02-25 00:45:45
阅读次数:
327
链接:click here
题意:
描述 在多媒体数据处理中,数据压缩算法尤为重要。小媛上完课后就想自己发明一个数据压缩算法。她想呀想,终于想到一个方法。在多媒体数据中有很多数据都是重复的,所以她想把连续相同的数据用数据出现的次数和数据本身表示。例如:1 1 1 2 3 3 3 3 3 压缩后及为3 1 1 2 5 3(表示3个1,1个2和5个3)。有想法后小媛就希望把它用代码实现了...
分类:
其他好文 时间:
2015-02-24 21:00:53
阅读次数:
249
链接:click here~~
题意:
描述
LK has a question.Coule you help her?
It is the beginning of the day at a bank, and a crowd of clients is already waiting for the entrance door to open.
Once the ban...
分类:
编程语言 时间:
2015-02-24 13:52:25
阅读次数:
210
链接:click here
题意:
描述
One day,Jiameier is tidying up the room,and find some coins. Then she throws the coin to play.Suddenly,she thinks of a problem ,that if throw n times coin ,how many situati...
分类:
其他好文 时间:
2015-02-23 23:44:15
阅读次数:
396
链接:click here
题意:
A Simple Problem
时间限制:3000 ms | 内存限制:65535 KB
难度:2
描述You know, just as the title imply, this is a simple problem. In a contest, given the team-id, solved, pena...
分类:
编程语言 时间:
2015-02-23 23:40:36
阅读次数:
325
取石子(一)时间限制:3000ms | 内存限制:65535KB难度:2描述一天,TT在寝室闲着无聊,和同寝的人玩起了取石子游戏,而由于条件有限,他/她们是用旺仔小馒头当作石子。游戏的规则是这样的。设有一堆石子,数量为N(1 2 using namespace std; 3 int main() 4...
分类:
其他好文 时间:
2015-02-23 23:39:04
阅读次数:
222