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