传送门:http://www.lydsy.com/JudgeOnline/problem.php?id=4291
总感觉见过……顺着记忆翻出了http://www.lydsy.com/JudgeOnline/problem.php?id=3721
回头看了一下题……
……
……
……
hh
Code:
#include<bits/stdc++.h>
using namespace std;
int main(){
long long sum=0;
int n,b=INT_MAX;scanf("%d",&n);
while(n--){
int x;scanf("%d",&x);
sum+=x;if(x&1)b=min(b,x);
}
if(sum&1&&b!=INT_MAX)sum-=b;
if((sum&1)||!sum)puts("NIESTETY");
else cout<<sum<<endl;
return 0;
}