Monkey_D_Luffy_1999's blog

By Monkey_D_Luffy_1999, history, 9 years ago, In Russian

I have problem with that problem http://mirror.codeforces.com/contest/459/problem/E
Could someone please help me to find my fault, it gives wrong answer on test 36
I solved it with dp here is my solution link
Thanks in advance.