Hello guys, while attempting the question: https://codeforces.com/contest/903/problem/B,
my solution: https://codeforces.com/contest/903/submission/152621361 is giving the right answer of the test cases on my local machine but while submitting it, It is giving some other output. This had happened a few times before also, couldn't figure out why... even I have changed the compiler to the GNU C++14. please help !!
Thanks for the HELP!