Loading

摘要: http://acm.hdu.edu.cn/showproblem.php?pid=3068 最长回文 Problem Description 给出一个只由小写英文字符a,b,c...y,z组成的字符串S,求S中最长回文串的长度. 回文就是正反读都是一样的字符串,如aba, abba等 Input 阅读全文
posted @ 2016-07-21 09:58 Shadowdsp 阅读(251) 评论(0) 推荐(0) 编辑
摘要: http://acm.hdu.edu.cn/showproblem.php?pid=5723 Abandoned country Problem Description An abandoned country has n(n≤100000) villages which are numbered 阅读全文
posted @ 2016-07-20 15:30 Shadowdsp 阅读(399) 评论(0) 推荐(0) 编辑
摘要: http://poj.org/problem?id=3321 http://acm.hdu.edu.cn/showproblem.php?pid=3887 POJ 3321: 题意:给出一棵根节点为1的边不一定的树,然后给出问题:询问区间和 或者 节点值更新。 HDU 3887: 题意:和POJ 3 阅读全文
posted @ 2016-07-18 20:28 Shadowdsp 阅读(226) 评论(0) 推荐(0) 编辑
摘要: http://www.lydsy.com/JudgeOnline/problem.php?id=1026 1026: [SCOI2009]windy数 Description windy定义了一种windy数。不含前导零且相邻两个数字之差至少为2的正整数被称为windy数。 windy想知道,在A和 阅读全文
posted @ 2016-07-18 12:18 Shadowdsp 阅读(206) 评论(0) 推荐(0) 编辑
摘要: http://poj.org/problem?id=1113 Wall Time Limit: 1000MS Memory Limit: 10000K Total Submissions: 34616 Accepted: 11821 Description Once upon a time ther 阅读全文
posted @ 2016-07-18 11:44 Shadowdsp 阅读(208) 评论(0) 推荐(0) 编辑
摘要: http://codeforces.com/problemset/problem/633/D D. Fibonacci-ish D. Fibonacci-ish Yash has recently learnt about the Fibonacci sequence and is very exc 阅读全文
posted @ 2016-07-18 09:41 Shadowdsp 阅读(405) 评论(0) 推荐(0) 编辑
摘要: http://codeforces.com/contest/697/problem/C C. Lorenzo Von Matterhorn time limit per test 1 second memory limit per test 256 megabytes input standard 阅读全文
posted @ 2016-07-15 11:14 Shadowdsp 阅读(715) 评论(0) 推荐(0) 编辑
摘要: Problem G Font: Times New Roman | Verdana | Georgia Font Size: ← → Problem Description S number is the number which the sum of every digit is a prime 阅读全文
posted @ 2016-07-14 20:29 Shadowdsp 阅读(877) 评论(0) 推荐(0) 编辑
摘要: http://codeforces.com/contest/691/problem/D D. Swaps in Permutation D. Swaps in Permutation You are given a permutation of the numbers 1, 2, ..., n an 阅读全文
posted @ 2016-07-14 09:56 Shadowdsp 阅读(481) 评论(0) 推荐(0) 编辑
摘要: http://acm.hdu.edu.cn/showproblem.php?pid=1533 Going Home Problem Description On a grid map there are n little men and n houses. In each unit time, ev 阅读全文
posted @ 2016-07-12 15:37 Shadowdsp 阅读(1143) 评论(0) 推荐(0) 编辑
摘要: http://acm.hdu.edu.cn/showproblem.php?pid=2795 Billboard Problem Description At the entrance to the university, there is a huge rectangular billboard 阅读全文
posted @ 2016-07-10 18:28 Shadowdsp 阅读(297) 评论(0) 推荐(0) 编辑
摘要: http://acm.hdu.edu.cn/showproblem.php?pid=1698 Just a Hook Problem Description In the game of DotA, Pudge’s meat hook is actually the most horrible th 阅读全文
posted @ 2016-07-09 22:07 Shadowdsp 阅读(191) 评论(0) 推荐(0) 编辑
摘要: http://acm.hdu.edu.cn/showproblem.php?pid=1394 Minimum Inversion Number Problem Description The inversion number of a given number sequence a1, a2, .. 阅读全文
posted @ 2016-07-09 21:31 Shadowdsp 阅读(187) 评论(0) 推荐(0) 编辑
摘要: http://acm.hdu.edu.cn/showproblem.php?pid=2089 不要62 Problem Description 杭州人称那些傻乎乎粘嗒嗒的人为62(音:laoer)。 杭州交通管理局经常会扩充一些的士车牌照,新近出来一个好消息,以后上牌照,不再含有不吉利的数字了,这样 阅读全文
posted @ 2016-07-01 11:13 Shadowdsp 阅读(328) 评论(0) 推荐(0) 编辑
摘要: http://acm.hdu.edu.cn/showproblem.php?pid=1025 Constructing Roads In JGShining's Kingdom Problem Description JGShining's kingdom consists of 2n(n is n 阅读全文
posted @ 2016-07-01 09:31 Shadowdsp 阅读(313) 评论(0) 推荐(0) 编辑