ACM字符串题
文章平均质量分 78
椰子Tyshawn
你眼中的世界就是你自己的样子。
展开
-
字符串练习-统计单词数
Description一般的文本编辑器都有查找单词的功能,该功能可以快速定位特定单词在文章中的位置,有的还能统计出特定单词在文章中的次数。现在,请你编程实现这一功能,具体要求是:给定一个单词,请你输出它在给定的文章中出现的次数和第一次出现的位置。注意:匹配单词时,不区分大小写,但要求完全匹配,即单词必须与文章中某一独立残次在不区分大小写的情况下完全相同(参见样例1),如果给定单词仅是文原创 2016-07-24 23:11:01 · 1753 阅读 · 0 评论 -
小Q系列故事——为什么时光不能倒流
小Q系列故事——为什么时光不能倒流Time Limit: 300/100 MS (Java/Others) Memory Limit: 65535/32768 K (Java/Others)Total Submission(s): 3959 Accepted Submission(s): 1714Problem Description 我以为我会是最坚强的原创 2017-04-05 09:47:58 · 608 阅读 · 0 评论 -
魔法串
魔法串Time Limit: 3000/1000 MS (Java/Others) Memory Limit: 65535/32768 K (Java/Others)Total Submission(s): 2721 Accepted Submission(s): 981Problem Description 小明和他的好朋友小西在玩一个新的游戏,由小西给出一原创 2017-04-03 20:14:01 · 450 阅读 · 0 评论 -
Lazy Math Instructor
Lazy Math InstructorTime Limit: 1000MSMemory Limit: 10000KTotal Submissions: 3894Accepted: 1353DescriptionA math instructor is too lazy to grade a question in t原创 2016-10-08 17:16:02 · 535 阅读 · 0 评论 -
References
ReferencesTime Limit: 1000MS Memory Limit: 65536KTotal Submissions: 4376 Accepted: 912DescriptionEditors of an electronic magazine make draft versions of the docume原创 2016-10-11 19:31:34 · 564 阅读 · 0 评论 -
zcmu 1616: 最长回文串
Description 求一个字符串的最长回文串Input 第一行输入n接下来n行每行每行一个字符串长度Output 输出最长回文串的长度Sample Input3abababaaaaabaaacacdasSample Output753HINT不要想太多 Watercode:#in原创 2016-08-13 19:55:27 · 545 阅读 · 0 评论 -
poj TEX Quotes
TEX QuotesTime Limit: 1000MS Memory Limit: 10000KTotal Submissions: 10207 Accepted: 5327DescriptionTEX is a typesetting language developed by Donald Knuth. It takes原创 2016-09-04 11:57:12 · 669 阅读 · 0 评论 -
poj 1598 Excuses, Excuses!
Excuses, Excuses!Time Limit: 1000MS Memory Limit: 10000KTotal Submissions: 4115 Accepted: 1417DescriptionJudge Ito is having a problem with people subpoenaed for ju原创 2016-09-15 11:06:02 · 410 阅读 · 0 评论 -
poj 2403 Hay Points
Hay PointsTime Limit: 1000MS Memory Limit: 65536KTotal Submissions: 6300 Accepted: 4031DescriptionEach employee of a bureaucracy has a job description - a few parag原创 2016-09-13 20:03:04 · 559 阅读 · 0 评论 -
Simple Line Editor
Simple Line Editor Time Limit:1000MS Memory Limit:131072KB 64bit IO Format:%lld & %llu Submit Status Practice CSU 1019 DescriptionEarly computer used line editor, whic原创 2016-08-19 19:47:57 · 420 阅读 · 0 评论 -
poj 2121 Inglish-Number Translator
Inglish-Number TranslatorTime Limit: 1000MSMemory Limit: 65536KTotal Submissions: 5253Accepted: 2065DescriptionIn this problem, you will be given one or more in原创 2016-09-10 11:59:59 · 444 阅读 · 0 评论 -
KMP入门必做-周期
DescriptionGiven two strings a and b we define a*b to be their concatenation. For example, if a = "abc" and b = "def" then a*b = "abcdef". If we think of concatenation as multiplication, exponenti原创 2016-08-06 10:52:49 · 325 阅读 · 0 评论 -
kmp-KMP入门必做-匹配
DescriptionGiven 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 find a number K which make a[K] = b[1], a原创 2016-08-05 20:59:25 · 447 阅读 · 0 评论 -
FZU 1410 变位词
C - 变位词Time Limit:1000MS Memory Limit:32768KB 64bit IO Format:%I64d & %I64uSubmitStatusPracticeFZU 1410DescriptionMr. Right有一个奇怪的嗜好,就是看见一个单词就有找它所有的变位词的冲动。一个单词的变位词就是该单词所有字母的一个排列原创 2016-08-15 20:01:41 · 351 阅读 · 0 评论 -
FZU 1481 环串
G - 环串Time Limit:1000MS Memory Limit:32768KB 64bit IO Format:%I64d & %I64uSubmitStatusPracticeFZU 1481Description环串是一个首尾相接的串。例如,串abcabcxyzaxcaxcaxc 与串cabcxyzaxcaxcaxcab和xcaxcax原创 2016-08-15 19:47:57 · 522 阅读 · 0 评论 -
Spreadsheets
Description 在一些知名的表格处理系统中(比如:excel表格),我们经常用大写的字母来表示列,例如A表示第1列,B表示第2列,第26列用Z来表示,同时第27列我们用AA来表示,第28列我们用AB来表示,第29列我们用AC来表示,AZ表示第52列,ZZ之后我们就需要用3个字母来表示列了。 行的表示比较简单,我们一般用正整数来表示,比如1就表示第1行,5就表示第5行,行和列原创 2016-07-22 17:29:56 · 1710 阅读 · 0 评论 -
小Q系列故事——世界上最遥远的距离
小Q系列故事——世界上最遥远的距离Time Limit: 500/200 MS (Java/Others) Memory Limit: 65535/32768 K (Java/Others)Total Submission(s): 2328 Accepted Submission(s): 852Problem Description 世界上最遥远的距离原创 2017-04-05 23:28:20 · 1162 阅读 · 0 评论