摘要: The little cat is so famous, that many couples tramp over hill and dale to Byteland, and asked the little cat to give names to their newly-born babies 阅读全文
posted @ 2017-04-06 19:33 joeylee97 阅读(128) 评论(0) 推荐(0) 编辑
摘要: Given 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 concate 阅读全文
posted @ 2017-04-06 18:32 joeylee97 阅读(120) 评论(0) 推荐(0) 编辑
摘要: There is a string A. The length of A is less than 1,000,000. I rewrite it again and again. Then I got a new string: AAAAAA...... Now I cut it from two 阅读全文
posted @ 2017-04-06 18:20 joeylee97 阅读(127) 评论(0) 推荐(0) 编辑
摘要: For each prefix of a given string S with N characters (each character has an ASCII code between 97 and 126, inclusive), we want to know whether the pr 阅读全文
posted @ 2017-04-06 17:35 joeylee97 阅读(295) 评论(0) 推荐(0) 编辑
摘要: CC always becomes very depressed at the end of this month, he has checked his credit card yesterday, without any surprise, there are only 99.9 yuan le 阅读全文
posted @ 2017-04-06 16:19 joeylee97 阅读(282) 评论(0) 推荐(0) 编辑
摘要: 一块花布条,里面有些图案,另有一块直接可用的小饰条,里面也有一些图案。对于给定的花布条和小饰条,计算一下能从花布条中尽可能剪出几块小饰条来呢? Input输入中含有一些数据,分别是成对出现的花布条和小饰条,其布条都是用可见ASCII字符表示的,可见的ASCII字符有多少个,布条的花纹也有多少种花样。 阅读全文
posted @ 2017-04-06 09:21 joeylee97 阅读(325) 评论(0) 推荐(0) 编辑