submission link
i’ve used this approach
Try using long long instead of int for the variables even and odd.
2 Likes
Try using long long instead of int for the variables even and odd.