摘要: 题目描述 如果一个字符串包含两个相邻的重复子串,则称他是“容易的串”,其他串称为"困难的串"。例如,BB,ABCDACABCAB,ABCDABCD都是容易的串,而D,DC,ABDAB,CBABCBAD都是困难的串。 题目描述 如果一个字符串包含两个相邻的重复子串,则称他是“容易的串”,其他串称为"困 阅读全文
posted @ 2016-05-11 22:07 Asimple 阅读(520) 评论(0) 推荐(0) 编辑
摘要: Description BackgroundThe knight is getting bored of seeing the same black and white squares again and again and has decided to make a journey around 阅读全文
posted @ 2016-05-11 21:40 Asimple 阅读(443) 评论(0) 推荐(0) 编辑
摘要: Description Farmer John has arranged his N (1 ≤ N ≤ 5,000) cows in a row and many of them are facing forward, like good cows. Some of them are facing 阅读全文
posted @ 2016-05-11 20:13 Asimple 阅读(226) 评论(0) 推荐(0) 编辑
摘要: Description A robot has been programmed to follow the instructions in its path. Instructions for the next direction the robot is to move are laid down 阅读全文
posted @ 2016-05-11 16:15 Asimple 阅读(609) 评论(0) 推荐(0) 编辑