WA in CHEFZOT

Here is link to my code. I have no idea, why I am getting WA? The code looks fine to me. Could someone please point out my mistake?

Your code doesn’t even pass sample test cases. :neutral_face:

2 Likes

Oh, I got it why It is not working. I did not consider the whitespace in the input :sweat_smile: Thanks to pointed out

Your code doesn’t even pass sample test cases

otherwise, I would have kept wondering what is wrong.

https://www.codechef.com/viewsolution/46984473
Updated solution, Still getting WA

Input:

6
11 22 33 44 55 66

Expected Output:

6

Your Output:

12
2 Likes