字符串
文章平均质量分 82
哈西哈希
这个作者很懒,什么都没留下…
展开
-
UVA 409 Excuses, Excuses!
Excuses, Excuses! Judge Ito is having a problem with people subpoenaed for jury duty giving rather lame excuses in order to avoid serving. In order to reduce the amount of time required listening to原创 2015-08-04 21:01:27 · 267 阅读 · 0 评论 -
UVA 537 Artificial Intelligence?
Artificial Intelligence? Physics teachers in high school often think that problems given as text are more demanding than pure computations. After all, the pupils have to read and under原创 2015-08-03 15:55:34 · 366 阅读 · 0 评论 -
UVA 10361 Automatic Poetry
yiyi: 输入: 输入N组测试用例,每组输入两个字符串。 第一个字符串格式:s12>s34>s5 s1,s2,s3,s3,s4,s5都可以为空或者不存在或者全是小写字符 第二个字符串格式:s .... 输出: 每组测试用例输出两个字符串。 第一个字符串格式:s1s2s3s4s5 第二个字符串格式:ss4s3s2s5 yiyi:原创 2015-08-03 10:00:19 · 243 阅读 · 0 评论 -
A - Palindromes:
A - Palindromes: Description A regular palindrome is a string of numbers or letters that is the same forward as backward. For example, the string "ABCDEDCBA" is a palindrome because it is原创 2015-07-20 20:21:26 · 261 阅读 · 0 评论 -
UVA 10878 Decode the tape
Description "Machines take me by surprise with great frequency." Alan Turing Your boss has just unearthed a roll of old computer tapes. The tapes have holes in them and might原创 2015-08-05 15:27:34 · 270 阅读 · 0 评论 -
HDU 1305 Immediate Decodability
yiyi: 我是先用qsort()把他们从小到大排序,根据字典序,再用find()函数来查找,只要在当前的这个中找有没前一个存在就可以了。 Description An encoding of a set of symbols is said to be immediately decodable if no code for one symbol is the原创 2015-08-06 16:51:33 · 257 阅读 · 0 评论 -
UVA10815 Andy's First Dictionary
yiyi:大概意思是输入一个文本,然后把它按照字典序排好再输出。 Andy, 8, has a dream - he wants to produce his very own dictionary. This is not an easy task for him, as the number of words that he knows is, well, not quite eno原创 2015-08-05 18:54:39 · 224 阅读 · 0 评论 -
UVA 10115 子符串替换
yiyi: 第一遍提交WA,看了好久才发现,假如你第一个规则已经用完了,跳到了第二个规则后,就不能返回再用第一个规则了。 题目中就有说要注意,我居然忽视了这句,真的是作死。(知道了strstr()这个函数,真实神奇!!!!)。 题目大意:给出n对可替换字符串,对给出的一个字符串,对其进行替换,输出无法替换后的字符串(同一对可能替换不只一次,按给出替换对的顺序进行修改) Text原创 2015-08-06 16:34:54 · 251 阅读 · 0 评论 -
UVA 10010 Where's Waldorf?
Given a m by n grid of letters, (1 m; n 50), and a list of words, nd the location in the grid at which the word can be found. A word matches a straight, uninterrupted line of letters in the grid原创 2015-08-06 18:46:12 · 266 阅读 · 0 评论