It is my first blog so I apologizes If anything wrong .I am beginner in CP . I completed nearly 10 contest of div2 codeforces . I am generally able to solve A and B problems. so can anyone guide me how to approach C problem in codefocres ,I have no confidence to solve C problem . After reading the editorial I can understand that the approach of thinking of mine was different for problem C . thanks in advance...