36682023-03-02 10:27:42JMMirkoKártya (80 pont)cpp17Wrong answer 43/803ms3816 KiB
#include <bits/stdc++.h>
using namespace std;

int main() {
	int n;
	cin >> n;
	vector<int>v(n);
	int ossz=0;
	for(int i=0;i<n;i++){
		cin >> v[i];
		ossz+=v[i];
	}
	if(ossz%n==0){
		cout << "IGEN" << endl;
		for(int i=0;i<n;i++){
			if(v[i]-ossz/n>0)cout << v[i]-ossz/n << ' ';
			else cout << 0 << ' ';
		}
	}else cout << "NEM" << n-ossz%n;

}
SubtaskSumTestVerdictTimeMemory
base43/80
1Accepted0/03ms1808 KiB
2Wrong answer0/02ms2056 KiB
3Accepted4/43ms2272 KiB
4Wrong answer0/53ms2480 KiB
5Accepted5/53ms2696 KiB
6Wrong answer0/52ms2908 KiB
7Accepted5/52ms3152 KiB
8Wrong answer0/42ms3264 KiB
9Accepted4/43ms3304 KiB
10Wrong answer0/52ms3388 KiB
11Accepted5/52ms3508 KiB
12Wrong answer0/52ms3392 KiB
13Accepted6/63ms3468 KiB
14Wrong answer0/63ms3596 KiB
15Accepted7/73ms3684 KiB
16Wrong answer0/72ms3676 KiB
17Accepted7/73ms3816 KiB