Problem Description
Loading...
Problem Analysis
Find the maximum value such that the sum of the array’s numbers is odd
You only need to check whether the final sum is odd
If it is odd, just subtract the smallest odd number
Otherwise output it directly
cpp
| |
Problem address:【CodeForces】[621A]Wet Shark and Odd and Even