Problem : http://acm.timus.ru/problem.aspx?space=1&num=2021
I tried to solve this problem in greedy way. But could not manage it . Can i really solve this greedily ? Or i need a different approach.
greedy ?
Problem : http://acm.timus.ru/problem.aspx?space=1&num=2021
I tried to solve this problem in greedy way. But could not manage it . Can i really solve this greedily ? Or i need a different approach.