上一页 1 ··· 3 4 5 6 7 8 9 10 11 ··· 13 下一页
摘要: 时间限制:10000ms单点时限:1000ms内存限制:256MB描述 小Hi平时的一大兴趣爱好就是演奏钢琴。我们知道一段音乐旋律可以被表示为一段数构成的数列。 小Hi发现旋律可以循环,每次把一段旋律里面最前面一个音换到最后面就成为了原旋律的“循环相似旋律”,还可以对“循环相似旋律”进行相同的变换能 阅读全文
posted @ 2019-06-18 19:30 zjxxcn 阅读(273) 评论(0) 推荐(0) 编辑
摘要: Description 给定一个字符串S = {S1, S2, S3 … Sn}, 如果在串SS中, 子串T(|T| = n)为所有长度为n的SS的字串中最小的(字符串的比较), 则称T为”奇怪的字串”. 你的任务就是找出这个字符串. 给定一个字符串S = {S1, S2, S3 … Sn}, 如果 阅读全文
posted @ 2019-06-18 16:07 zjxxcn 阅读(146) 评论(0) 推荐(0) 编辑
摘要: Description 小敏和小燕是一对好朋友。 他们正在玩一种神奇的游戏,叫Minecraft。 他们现在要做一个由方块构成的长条工艺品。但是方块现在是乱的,而且由于机器的要求,他们只能做到把这个工艺品最左边的方块放到最右边。 他们想,在仅这一个操作下,最漂亮的工艺品能多漂亮。 两个工艺品美观的比 阅读全文
posted @ 2019-06-18 15:57 zjxxcn 阅读(118) 评论(0) 推荐(0) 编辑
摘要: Description 给定两个项链的表示,判断他们是否可能是一条项链。 给定两个项链的表示,判断他们是否可能是一条项链。 Input 输入文件只有两行,每行一个由0至9组成的字符串,描述一个项链的表示(保证项链的长度是相等的)。 输入文件只有两行,每行一个由0至9组成的字符串,描述一个项链的表示( 阅读全文
posted @ 2019-06-18 14:02 zjxxcn 阅读(166) 评论(0) 推荐(0) 编辑
摘要: A string is finite sequence of characters over a non-empty finite set Σ. In this problem, Σ is the set of lowercase letters. Substring, also called fa 阅读全文
posted @ 2019-06-18 00:29 zjxxcn 阅读(163) 评论(0) 推荐(0) 编辑
摘要: 时间限制:15000ms单点时限:3000ms内存限制:512MB描述 小Hi平时的一大兴趣爱好就是演奏钢琴。我们知道一段音乐旋律可以被表示为一段数构成的数列。 神奇的是小Hi发现了一部名字叫《十进制进行曲大全》的作品集,顾名思义,这部作品集里有许多作品,但是所有的作品有一个共同特征:只用了十个音符 阅读全文
posted @ 2019-06-17 21:37 zjxxcn 阅读(164) 评论(0) 推荐(0) 编辑
摘要: 时间限制:15000ms 单点时限:3000ms 内存限制:512MB 时间限制:15000ms 单点时限:3000ms 内存限制:512MB 描述 小Hi平时的一大兴趣爱好就是演奏钢琴。我们知道一个音乐旋律被表示为一段数构成的数列。 现在小Hi想知道一部作品中所有长度为K的旋律中出现次数最多的旋律 阅读全文
posted @ 2019-06-17 15:43 zjxxcn 阅读(84) 评论(0) 推荐(0) 编辑
摘要: 看了这两篇内容以后,终于对sam有了一个比较清楚的了解。 转载: hihocoder https://www.luogu.org/blog/Kesdiael3/hou-zhui-zi-dong-ji-yang-xie 阅读全文
posted @ 2019-06-17 15:41 zjxxcn 阅读(112) 评论(0) 推荐(0) 编辑
摘要: Description 对于一个给定长度为N的字符串,求它的第K小子串是什么。 对于一个给定长度为N的字符串,求它的第K小子串是什么。 Input 第一行是一个仅由小写英文字母构成的字符串S 第二行为两个整数T和K,T为0则表示不同位置的相同子串算作一个。T=1则表示不同位置的相同子串算作多个。K的 阅读全文
posted @ 2019-06-14 15:09 zjxxcn 阅读(150) 评论(0) 推荐(0) 编辑
摘要: 题目背景 因为NOI被虐傻了,蒟蒻的YJQ准备来学习一下字符串,于是它碰到了这样一道题: 题目描述 给你一个长为N的字符串,求不同的子串的个数 我们定义两个子串不同,当且仅当有这两个子串长度不一样 或者长度一样且有任意一位不一样。 子串的定义:原字符串中连续的一段字符组成的字符串 输入输出格式 输入 阅读全文
posted @ 2019-06-13 19:52 zjxxcn 阅读(232) 评论(0) 推荐(0) 编辑
摘要: 1582: [Usaco2009 Hol]Holiday Painting 节日画画 Description Input 第1行输入R,C,Q.接下来输入R行C列的目标画.之后Q行一行输入一次操作的5个参数. 第1行输入R,C,Q.接下来输入R行C列的目标画.之后Q行一行输入一次操作的5个参数. O 阅读全文
posted @ 2019-06-13 14:46 zjxxcn 阅读(207) 评论(0) 推荐(0) 编辑
摘要: A string is finite sequence of characters over a non-empty finite set Σ. In this problem, Σ is the set of lowercase letters. Substring, also called fa 阅读全文
posted @ 2019-06-11 16:04 zjxxcn 阅读(204) 评论(0) 推荐(0) 编辑
摘要: You are the King of Byteland. Your agents have just intercepted a batch of encrypted enemy messages concerning the date of the planned attack on your 阅读全文
posted @ 2019-06-11 15:10 zjxxcn 阅读(166) 评论(0) 推荐(0) 编辑
摘要: 1297. Palindrome Time limit: 1.0 secondMemory limit: 64 MB The “U.S. Robots” HQ has just received a rather alarming anonymous letter. It states that t 阅读全文
posted @ 2019-06-11 02:35 zjxxcn 阅读(238) 评论(0) 推荐(0) 编辑
摘要: Given a string, we need to find the total number of its distinct substrings. Input T- number of test cases. T<=20;Each test case consists of one strin 阅读全文
posted @ 2019-06-10 16:19 zjxxcn 阅读(184) 评论(0) 推荐(0) 编辑
摘要: The repetition number of a string is defined as the maximum number R such that the string can be partitioned into R same consecutive substrings. For e 阅读全文
posted @ 2019-06-10 15:32 zjxxcn 阅读(214) 评论(0) 推荐(0) 编辑
摘要: Common Substrings Time Limit: 5000MS Memory Limit: 65536K Total Submissions: 13892 Accepted: 4669 Description A substring of a string T is defined as: 阅读全文
posted @ 2019-06-08 17:39 zjxxcn 阅读(139) 评论(0) 推荐(0) 编辑
摘要: Life Forms Time Limit: 5000MS Memory Limit: 65536K Total Submissions: 18777 Accepted: 5530 Description You may have wondered why most extraterrestrial 阅读全文
posted @ 2019-06-03 13:54 zjxxcn 阅读(201) 评论(0) 推荐(0) 编辑
摘要: Time Limit: 5000MS Memory Limit: 65536K Total Submissions: 19143 Accepted: 8441 Case Time Limit: 2000MS Description Farmer John has noticed that the q 阅读全文
posted @ 2019-06-02 00:59 zjxxcn 阅读(145) 评论(0) 推荐(0) 编辑
摘要: Power Strings Time Limit: 3000MS Memory Limit: 65536K Total Submissions: 64350 Accepted: 26531 Description Given two strings a and b we define a*b to 阅读全文
posted @ 2019-06-02 00:25 zjxxcn 阅读(126) 评论(0) 推荐(0) 编辑
上一页 1 ··· 3 4 5 6 7 8 9 10 11 ··· 13 下一页