字符串
追逐星辰的光
脚踏实地,虚心前行
展开
-
Molar mass UVA - 1586
Molar massDescriptionAn organic compound is any member of a large class of chemical compounds whose molecules contain carbon. The molarmass of an organic compound is the mass原创 2017-10-19 18:41:20 · 411 阅读 · 0 评论 -
DNA Consensus String UVA - 1368 模拟找规律
DNA Consensus StringTime limit: 3.000 secondsFigure 1.DNA (Deoxyribonucleic Acid) is the molecule which contains the genetic instructions. It consists of four different nucleotides, namely A原创 2017-10-19 20:04:48 · 362 阅读 · 0 评论 -
UVA 10340 All in All
DescriptionYou have devised a new encryption technique which encodes a message by inserting between its characters randomly generated strings in a clever way. Because of pending patent issues we w原创 2017-10-19 20:19:50 · 285 阅读 · 0 评论 -
Periodic Strings 字符串匹配
Description如果一个字符串可以被某个长度为k的字符串重复多次得到,则称这个字符串的周期为k。例如,字符串“abcabcabcabc”以3为周期(当然,他也以6、12等等为周期)。 现在请你编写一个程序,求出任一长度不超过80的字符串的最小周期。Input输入首先是一个整数n,代表有n组数据。每组数据占一行,是一个长度不超过80的字符串。两组相邻的输入之间有一个空行原创 2017-10-20 21:03:31 · 333 阅读 · 0 评论 -
Crossword Answers 模拟 字符串
Crossword AnswersTime Limit: 1000MS Memory Limit: 30000KTotal Submissions: 869 Accepted: 405DescriptionA crossword puzzle consists of a rectangular翻译 2017-10-20 21:49:33 · 557 阅读 · 0 评论 -
Circular Sequence UVA - 1584
最小字典序输出:TopCoderTo be a top Coder !UVa 1548 Circular Sequence (字符串处理)Circular SequenceTime Limit: 3000MS Memory Limit: Unknown 64bit IO Format: %lld &原创 2017-10-19 16:24:16 · 193 阅读 · 0 评论 -
Ancient Cipher
DescriptionAncient Roman empire had a strong government system with various departments, including a secret service department. Important documents were sent between provinces and the capital in e原创 2017-10-20 22:53:30 · 258 阅读 · 0 评论