MARCH CONTEST 2021

I tried the College life 4 question in the March Contest CodeChef: Practical coding for everyone
My solution is this
CodeChef: Practical coding for everyone
i tried all possible test cases i got the right answer but when i submitted my solution i got WA in all the subtasks Can someone help me

Your code is failing this test-case
1
6 20 11 10 3 6
Expected O/P :
30
Your O/P :
31

2 Likes

Thank you Brother