Try using long long int instead of int.
1 Like
Consider the test input:
3
4 5 5
2 Likes
thanks
thank you very much
1 Like