摘要: Description A palindrome is a symmetrical string, that is, a string read identically from left to right as well as from right to left. Y... 阅读全文
posted @ 2016-08-06 16:10 Loi_Vampire 阅读(100) 评论(0) 推荐(0) 编辑
摘要: Vasya has n days of vacations! So he decided to improve his IT skills and do sport. Vasya knows the following information about each of thi... 阅读全文
posted @ 2016-08-06 16:04 Loi_Vampire 阅读(139) 评论(0) 推荐(0) 编辑
摘要: You’ve got a string s = s1s2… s|s| of length |s|, consisting of lowercase English letters. There also are q queries, each query is describe... 阅读全文
posted @ 2016-08-06 15:46 Loi_Vampire 阅读(148) 评论(0) 推荐(0) 编辑
摘要: Description ‘Oh no, they’ve done it again’, cries the chief designer at the Waferland chip factory. Once more the routing designers have... 阅读全文
posted @ 2016-08-06 15:36 Loi_Vampire 阅读(90) 评论(0) 推荐(0) 编辑
摘要: Description Bessie has gone to the mall’s jewelry store and spies a charm bracelet. Of course, she’d like to fill it with the best charm... 阅读全文
posted @ 2016-08-06 15:23 Loi_Vampire 阅读(93) 评论(0) 推荐(0) 编辑
摘要: Description PenguinQQ是中国最大、最具影响力的SNS(Social Networking Services)网站,以实名制为基础,为用户提供日志、群、即时通讯、相册、集市等丰富强大的互联网功能体验,满足用户对社交、资讯、娱乐、交易等多方面的需求。 ... 阅读全文
posted @ 2016-07-22 10:27 Loi_Vampire 阅读(118) 评论(0) 推荐(0) 编辑
摘要: Description 一棵树上有n个节点,编号分别为1到n,每个节点都有一个权值w。我们将以下面的形式来要求你对这棵树完成 一些操作: I. CHANGE u t : 把结点u的权值改为t II. QMAX u v: 询问从点u到点v的路径上的节点的最... 阅读全文
posted @ 2016-07-18 21:06 Loi_Vampire 阅读(106) 评论(0) 推荐(0) 编辑
摘要: Description Farmer John’s pastoral neighborhood has N farms (2 #include #include using namespace std;const int SZ = 50000;struct query{ ... 阅读全文
posted @ 2016-06-06 21:01 Loi_Vampire 阅读(126) 评论(0) 推荐(0) 编辑
摘要: Description 给你一个字符串,它是由某个字符串不断自我连接形成的。 但是这个字符串是不确定的,现在只想知道它的最短长度是多少. Input 第一行给出字符串的长度,1 #include #include using namespace std;con... 阅读全文
posted @ 2016-05-24 20:16 Loi_Vampire 阅读(75) 评论(0) 推荐(0) 编辑
摘要: Description 幼儿园里有N个小朋友,lxhgww老师现在想要给这些小朋友们分配糖果,要求每个小朋友都要分到糖果。但是小朋友们也有嫉妒心,总是会提出一些要求,比如小明不希望小红分到的糖果比他的多,于是在分配糖果的时候,lxhgww需要满足小朋友们的K个要求。幼儿园... 阅读全文
posted @ 2016-05-21 20:07 Loi_Vampire 阅读(96) 评论(0) 推荐(0) 编辑