Hey guys,recently I've been stuck on this problem,I've written greedy solution and on the test cases I've tried the solution I've submitted gives the correct answer,anyways on judge I've WA.Here's my code . I'll describe algorithm later,if it is necessary.Thanks in advance ;)
UPDATE:
got AC,had to add one if statement :|
could you provide me with some testcases please i am suffering WA since days ...