排序:
默认
按更新时间
按访问量

CodeForces - 548A (字符串)

While Mike was walking in the subway, all the stuff in his back-bag dropped on the ground. There were several fax messages among them. He concatenate...

2017-10-25 08:09:44

阅读数:222

评论数:0

顺序表应用7:最大子段和之分治递归法

顺序表应用7:最大子段和之分治递归法 Time Limit: 10MS Memory Limit: 400KB Problem Description给定n(1<=n<=50000)个整数(可能为负数)组成的序列a[1],a[2],a[3],…,a[n],求该序列如a[i]+a[i...

2017-09-19 08:12:19

阅读数:265

评论数:0

A - Number Sequence (KMP)

Given two sequences of numbers : a[1], a[2], …… , a[N], and b[1], b[2], …… , b[M] (1 <= M <= 10000, 1 <= N <= 1000000). Your task is to f...

2017-08-23 21:45:46

阅读数:129

评论数:0

A Secret(KMP)

A SecretTime Limit: 2000/1000 MS (Java/Others) Memory Limit: 256000/256000 K (Java/Others) Total Submission(s): 1766 Accepted Submission(s): 6...

2017-08-21 20:18:32

阅读数:143

评论数:0

5-5 堆中的路径

5-5 堆中的路径 (25分) 将一系列给定数字插入一个初始为空的小顶堆H[]。随后对任意给定的下标i,打印从H[i]到根结点的路径。输入格式:每组测试第1行包含2个正整数NN和MM(\le 1000≤1000),分别是插入元素的个数、以及需要打印的路径条数。下一行给出区间[-10000, ...

2017-08-14 15:40:07

阅读数:127

评论数:0

5-2 一元多项式的乘法与加法运算

5-2 一元多项式的乘法与加法运算 (20分) 设计函数分别求两个一元多项式的乘积与和。输入格式:输入分2行,每行分别先给出多项式非零项的个数,再以指数递降方式输入一个多项式非零项系数和指数(绝对值均为不超过1000的整数)。数字间以空格分隔。输出格式:输出分2行,分别以指数递降方式输出乘积...

2017-08-14 14:47:23

阅读数:225

评论数:0

A - Ancient Cipher

Ancient Roman empire had a strong government system with various departments, including a secret service department. Important documents were sent b...

2017-08-10 13:08:38

阅读数:177

评论数:0

C - Fliptile (二进制+搜索)

Farmer John knows that an intellectually satisfied cow is a happy cow who will give more milk. He has arranged a brainy activity for cows in which th...

2017-08-09 21:59:36

阅读数:103

评论数:0

Q - Kickdown

Q - KickdownA research laboratory of a world-leading automobile company has received an order to create a special transmission mechanism, which allo...

2017-08-07 12:46:22

阅读数:170

评论数:0

O - All in All

You have devised a new encryption technique which encodes a message by inserting between its characters randomly generated strings in a clever way. ...

2017-08-07 11:04:11

阅读数:96

评论数:0

N - Repeating Decimals

N - Repeating DecimalsThe decimal expansion of the fraction 1/33 is 0.03, where the 03 is used to indicate that the cycle 03 repeats indefinitely wi...

2017-08-07 10:40:55

阅读数:118

评论数:0

Updating a Dictionary

Updating a Dictionary 这道题目,真的很……我前前后后做了将近5个小时,我到现在也不知道,我的代码,哪里出了问题…… 其实,就是简单的模拟,用结构体,数组,就可以做完的。 突然觉得自己很差,有的时候,脑袋转不过来,还要多多练习。WA 的代码,如果哪位同学可以知道我是在哪里...

2017-06-09 22:00:45

阅读数:186

评论数:3

KMP的应用

数据结构实验之串三:KMP应用 Time Limit: 1000MS Memory Limit: 65536KB Problem Description 有n个小朋友,每个小朋友手里有一些糖块,现在这些小朋友排成一排,编号是由1到n。现在给出m个数,能不能唯一的确定一对值l和r(...

2017-02-15 20:14:21

阅读数:207

评论数:0

KMP

数据结构实验之串一:KMP简单应用 Time Limit: 1000MS Memory Limit: 65536KB Problem Description 给定两个字符串string1和string2,判断string2是否为string1的子串。 Input  输入包含多组数据,每组测试...

2017-02-14 20:55:21

阅读数:153

评论数:0

提示
确定要删除当前文章?
取消 删除
关闭
关闭