Unfortunately we were unable to fully decode your file, as it is not encoded in UTF-8. You can try to decode it yourself by downloading it here.
 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
#include <cstdio>
#include <algorithm>

int n, liczbaNieparzystych, najmniejszaNieparzysta=1001;
long long suma;

int main(){
	scanf("%d", &n);
	for (int i=0; i<n; ++i){
		int x;
		scanf("%d", &x);
		if (x & 1){ //znalaz�em nieparzyst�
			++liczbaNieparzystych;
			najmniejszaNieparzysta = std::min (x, najmniejszaNieparzysta);
		}
		suma += x;
	}
	if (liczbaNieparzystych & 1){
		suma -= najmniejszaNieparzysta;
	}
	if (suma)
		printf("%lld\n", suma);
	else 
		printf("NIESTETY");
	return 0;
}