随笔分类 - 动态规划
摘要:D. Brand New Problem 题目连接: http://www.codeforces.com/contest/201/problem/D Description A widely known among some people Belarusian sport programmer Le
阅读全文
摘要:Clarke and tree 题目连接: http://acm.hdu.edu.cn/showproblem.php?pid=5629 Description Clarke is a patient with multiple personality disorder. One day, Clar
阅读全文
摘要:Clarke and math 题目连接: http://acm.hdu.edu.cn/showproblem.php?pid=5628 Description Clarke is a patient with multiple personality disorder. One day, he t
阅读全文
摘要:C. Fragile Bridges 题目连接: http://codeforces.com/contest/201/problem/C Description You are playing a video game and you have just reached the bonus leve
阅读全文
摘要:F. Group Projects 题目连接: http://www.codeforces.com/contest/626/problem/F Description There are n students in a class working on group projects. The stu
阅读全文
摘要:B. Let's Play Osu! 题目连接: http://www.codeforces.com/contest/235/problem/B Description You're playing a game called Osu! Here's a simplified version of
阅读全文
摘要:D. Array GCD 题目连接: http://codeforces.com/contest/624/problem/D Description You are given array ai of length n. You may consecutively apply two operati
阅读全文
摘要:1084: [SCOI2005]最大子矩阵 题目连接: http://www.lydsy.com/JudgeOnline/problem.php?id=1084 Description 这里有一个n m的矩阵,请你选出其中k个子矩阵,使得这个k个子矩阵分值之和最大。注意:选出的k个子矩阵不能相互重叠
阅读全文
摘要:1911: [Apio2010]特别行动队 题目连接: http://www.lydsy.com/JudgeOnline/problem.php?id=1911 Description 有n个数,然后你需要把这n个数分成若干段,每段的权值是a\ sum\ sum+b\ sum+c 问你怎么切,使得权
阅读全文
摘要:<center A. Substring and Subsequence</center 题目连接:http://codeforces.com/contest/163/problem/A DescriptionOne day Polycarpus got hold of two non empt...
阅读全文
摘要:<center Word Cut</center 题目连接:http://codeforces.com/problemset/problem/176/C DescriptionLet's consider one interesting word game. In this game you s...
阅读全文
摘要:<center Spiral Maximum</center 题目连接:http://codeforces.com/problemset/problem/173/C DescriptionLet's consider a k × k square, divided into unit squar...
阅读全文
摘要:<center Fighting for Triangles</center 题目连接:http://codeforces.com/gym/100015/attachments DescriptionAndy and Ralph are playing a two player game on ...
阅读全文
摘要:<center Voracious Steve</center 题目连接:http://codeforces.com/gym/100231/attachments Description有两个人在玩一个游戏有一个盆子里面有n个甜甜圈,A先开始,他可以抓[1,min(m,n)]颗甜甜圈,然后B开始...
阅读全文
摘要:<center Intervals</center 题目连接:http://codeforces.com/gym/100231/attachments DescriptionStart with an integer, N0, which is greater than 0. Let N1 be...
阅读全文
摘要:<center C. Running Track</center 题目连接:http://www.codeforces.com/contest/615/problem/C DescriptionA boy named Ayrat lives on planet AMI 1511. Each in...
阅读全文
摘要:<center B. Longtail Hedgehog</center 题目连接:http://www.codeforces.com/contest/615/problem/B DescriptionThis Christmas Santa gave Masha a magic picture...
阅读全文
摘要:<center 联合权值</center 题目连接:http://codevs.cn/problem/3728/ Description给一棵树,然后每相距离为2的点都会产生一个联合权值,等于Wa Wb问你联合权值最大的是多少,所有联合权值的和是多少 Input第一行nn 1行 x y 表示xy...
阅读全文
摘要:<center D. New Year and Ancient Prophecy</center 题目连接:http://www.codeforces.com/contest/611/problem/C DescriptionLimak is a little polar bear. In th...
阅读全文
摘要:<center D. Fox And Jumping</center 题目连接:http://codeforces.com/contest/510/problem/D DescriptionFox Ciel is playing a game. In this game there is an ...
阅读全文