随笔分类 - 动态规划
摘要:E. Vladik and cards 题目链接 http://codeforces.com/contest/743/problem/E 题面 Vladik was bored on his way home and decided to play the following game. He to
阅读全文
摘要:D Chloe and pleasant prizes 链接 http://codeforces.com/contest/743/problem/D 题面 Generous sponsors of the olympiad in which Chloe and Vladik took part al
阅读全文
摘要:C. Balance 题目链接 http://codeforces.com/contest/17/problem/C 题面 Nick likes strings very much, he likes to rotate them, sort them, rearrange characters w
阅读全文
摘要:C. Tennis Championship 题目链接 http://codeforces.com/contest/735/problem/C 题面 Famous Brazil city Rio de Janeiro holds a tennis tournament and Ostap Bende
阅读全文
摘要:4300: 绝世好题 题目连接: http://www.lydsy.com/JudgeOnline/problem.php?id=4300 Description 给定一个长度为n的数列ai,求ai的子序列bi的最长长度,满足bi&bi 1!=0(2 using namespace std; con
阅读全文
摘要:Xtreme8.0 Kabloom 题目连接: https://www.hackerrank.com/contests/ieeextreme challenges/challenges/kabloom Description The card game Kabloom is played with
阅读全文
摘要:Xtreme8.0 Kabloom 题目连接: https://www.hackerrank.com/contests/ieeextreme challenges/challenges/kabloom Description The card game Kabloom is played with
阅读全文
摘要:Car Spark 题目连接: https://www.hackerrank.com/contests/ieeextreme challenges/challenges/car spark Description John is a computer programmer and is highly
阅读全文
摘要:Play with GCD 题目连接: https://www.hackerrank.com/contests/ieeextreme challenges/challenges/play with gcd Description Minka is very smart kid who recentl
阅读全文
摘要:E. Goods transportation 题目连接: http://codeforces.com/contest/724/problem/E Description There are n cities located along the one way road. Cities are nu
阅读全文
摘要:Tree Cutting 题目连接: http://acm.hdu.edu.cn/showproblem.php?pid=5909 Description Byteasar has a tree T with n vertices conveniently labeled with 1,2,...,
阅读全文
摘要:Find Q 题目连接: http://acm.hdu.edu.cn/showproblem.php?pid=5907 Description Byteasar is addicted to the English letter 'q'. Now he comes across a string S
阅读全文
摘要:C. Journey 题目连接: http://codeforces.com/contest/721/problem/C Description Recently Irina arrived to one of the most famous cities of Berland — the Berl
阅读全文
摘要:odd even number 题目连接: http://acm.split.hdu.edu.cn/showproblem.php?pid=5898 Description For a number,if the length of continuous odd digits is even and
阅读全文
摘要:QSC and Master 题目连接: http://acm.split.hdu.edu.cn/showproblem.php?pid=5900 Description Every school has some legends, Northeastern University is the sa
阅读全文
摘要:D. Memory and Scores 题目连接: http://codeforces.com/contest/712/problem/D Description Memory and his friend Lexa are competing to get higher score in one
阅读全文
摘要:D. Two Paths 题目连接: http://codeforces.com/contest/14/problem/D Description As you know, Bob's brother lives in Flatland. In Flatland there are n cities
阅读全文
摘要:C. Coloring Trees 题目连接: http://www.codeforces.com/contest/711/problem/C Description ZS the Coder and Chris the Baboon has arrived at Udayland! They wa
阅读全文
摘要:3400: [Usaco2009 Mar]Cow Frisbee Team 奶牛沙盘队 题目连接: http://www.lydsy.com/JudgeOnline/problem.php?id=3400 Description 农夫顿因开始玩飞盘之后,约翰也打算让奶牛们享受飞盘的乐趣.他要组建一只
阅读全文
摘要:E. Dreamoon and Strings 题目连接: http://www.codeforces.com/contest/476/problem/E Description Dreamoon has a string s and a pattern string p. He first rem
阅读全文