How Many Fibs?Time Limit: 2000/1000 MS
(Java/Others)Memory Limit: 65536/32768 K (Java/Others) Total Submission(s):
3804Accepted Submission(s): 1498 Pr...
分类:
其他好文 时间:
2014-05-26 15:11:13
阅读次数:
197
Round and Round We GoTime Limit: 2000/1000 MS
(Java/Others)Memory Limit: 65536/32768 K (Java/Others) Total Submission(s):
623Accepted Submission(s): 3...
分类:
其他好文 时间:
2014-05-26 14:45:27
阅读次数:
243
Problem Description
哈利波特在魔法学校的必修课之一就是学习魔咒。据说魔法世界有100000种不同的魔咒,哈利很难全部记住,但是为了对抗强敌,他必须在危急时刻能够调用任何一个需要的魔咒,所以他需要你的帮助。
给你一部魔咒词典。当哈利听到一个魔咒时,你的程序必须告诉他那个魔咒的功能;当哈利需要某个功能但不知道该用什么魔咒时,你的程序要替他找到相应的魔咒。如果他要的魔咒不...
分类:
其他好文 时间:
2014-05-22 08:08:01
阅读次数:
279
就拿杭电OJ上的第1003题开始吧,这题比原书要复杂一些。
Problem Description
Given a sequence a[1],a[2],a[3]......a[n], your job is to calculate the max sum of a sub-sequence. For example, given (6,-1,5,4,-7), the max sum...
分类:
其他好文 时间:
2014-05-22 07:07:27
阅读次数:
322
题目:We all know that Bin-Laden is a notorious
terrorist, and he has disappeared for a long time. But recently, it is reported
that he hides in Hang Zho...
分类:
其他好文 时间:
2014-05-22 01:09:55
阅读次数:
328
Problem Description
A tree is a well-known data structure that is either empty (null, void, nothing) or is a set of one or more nodes connected by directed edges between nodes satisfying the follow...
分类:
其他好文 时间:
2014-05-21 10:55:57
阅读次数:
325
Problem Description
As we know, Big Number is always troublesome. But it's really important in our ACM. And today, your task is to write a program to calculate A mod B.
To make the problem easie...
分类:
其他好文 时间:
2014-05-20 14:42:07
阅读次数:
324
杭电ACM的一道题~~Problem
Description有很多从磁盘读取数据的需求,包括顺序读取、随机读取。为了提高效率,需要人为安排磁盘读取。然而,在现实中,这种做法很复杂。我们考虑一个相对简单的场景。磁盘有许多轨道,每个轨道有许多扇区,用于存储数据。当我们想在特定扇区来读取数据时,磁头需要跳...
分类:
其他好文 时间:
2014-05-19 15:31:42
阅读次数:
311
读入一个字符串,字符串中包含ZOJ三个字符,个数不一定相等,按ZOJ的顺序输出,当某个字符用完时,剩下的仍然按照ZOJ的顺序输出。Input题目包含多组用例,每组用例占一行,包含ZOJ三个字符,当输入“E”时表示输入结束。
1#includeusing namespace std;int main(...
分类:
其他好文 时间:
2014-05-15 01:57:16
阅读次数:
350
Problem Description
读入两个小于100的正整数A和B,计算A+B.
需要注意的是:A和B的每一位数字由对应的英文单词给出.
Input
测试输入包含若干测试用例,每个测试用例占一行,格式为"A + B =",相邻两字符串有一个空格间隔.当A和B同时为0时输入结束,相应的结果不要输出.
Output
对每个测试...
分类:
其他好文 时间:
2014-05-14 23:47:48
阅读次数:
390