Stl problem help please::

can any one help me with this problem it give me wrong answer
this is problem https://codeforces.com/group/u3Ii79X3NY/contest/270796/problem/M
and this is my code https://ideone.com/FyQPjH

Try this question https://onlinejudge.org/index.php?option=onlinejudge&page=show_problem&problem=455 , maybe then you are able to solve your question.

1 Like