Can anyone help me out with this problem,I have added comments for better understanding the code↵
↵
↵
[Question](https://mirror.codeforces.com/contest/814/problem/C) :: ↵
[code](https://mirror.codeforces.com/contest/814/submission/77233866)↵
**UPD::RESOLVED**
↵
↵
[Question](https://mirror.codeforces.com/contest/814/problem/C) :: ↵
[code](https://mirror.codeforces.com/contest/814/submission/77233866)↵
**UPD::RESOLVED**