I am getting RTE on test case 7 but I can't understand why I am getting Run Time Error. Everything seems ok to me. Plz anyone help me.
problem:
https://mirror.codeforces.com/contest/1399/problem/D My solution:
https://mirror.codeforces.com/contest/1399/submission/110898832