摘要: 链接: https://www.acwing.com/problem/content/287/ 题意: Ural大学有N名职员,编号为1~N。 他们的关系就像一棵以校长为根的树,父节点就是子节点的直接上司。 每个职员有一个快乐指数,用整数 Hi 给出,其中 1≤i≤N。 现在要召开一场周年庆宴会,不 阅读全文
posted @ 2019-09-26 23:38 YDDDD 阅读(184) 评论(0) 推荐(0)
摘要: 链接: https://vjudge.net/problem/HDU 3374 题意: Give you a string with length N, you can generate N strings by left shifts. For example let consider the s 阅读全文
posted @ 2019-09-26 21:24 YDDDD 阅读(123) 评论(0) 推荐(0)
摘要: 链接: https://vjudge.net/problem/HDU 1238 题意: You are given a number of case sensitive strings of alphabetic characters, find the largest string X, such 阅读全文
posted @ 2019-09-26 20:30 YDDDD 阅读(175) 评论(0) 推荐(0)
摘要: 链接: https://vjudge.net/problem/HDU 4300 题意: Clairewd is a member of FBI. After several years concealing in BUPT, she intercepted some important messag 阅读全文
posted @ 2019-09-26 19:56 YDDDD 阅读(162) 评论(0) 推荐(0)
摘要: 链接: https://vjudge.net/problem/HDU 3336 题意: It is well known that AekdyCoin is good at string problems as well as number theory problems. When given a 阅读全文
posted @ 2019-09-26 19:04 YDDDD 阅读(134) 评论(0) 推荐(0)
摘要: 链接: https://www.luogu.org/problem/P3805 题意: 给出一个只由小写英文字符a,b,c...y,z组成的字符串S,求S中最长回文串的长度. 字符串长度为n 思路: 马拉车算法. 代码: c++ include using namespace std; const 阅读全文
posted @ 2019-09-26 00:36 YDDDD 阅读(118) 评论(0) 推荐(0)