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