Problem Link:- https://mirror.codeforces.com/contest/1355/problem/C My submission:- https://mirror.codeforces.com/contest/1355/submission/80683918
I have tried my best to cover up all cases I am considering via comments in my code. Thanks in advance!!!
3 5 5 8
Expected: 11 Your answer: 9
Please don't yell at me xD In case you are asking for a failing test case, follow these steps: