http://codeforces.me/contest/337/problem/A
There are three tags for this problem( Greedy, Graph matching, dp). I have solved it using a greedy technique. Please help me to solve it using dp. Thanks, advanced!!!
N:B You can also suggest the graph matching solution.