36992023-03-02 11:17:45JMMirkoOszthatóság 17-tel (60 pont)cpp17Wrong answer 56/603ms3952 KiB
#include <bits/stdc++.h>
using namespace std;

int main() {
	int n;
	cin >> n;
	vector<int>v;
	if(n%17==0)cout << "IGEN" << endl;
	else cout << "NEM" << endl;
	while(n/10-(n%10)*5>=0 && n!=0){
		n=n/10-(n%10)*5;
		cout << n << ' ';
	}
}
SubtaskSumTestVerdictTimeMemory
base56/60
1Accepted0/03ms1744 KiB
2Accepted0/03ms2064 KiB
3Accepted3/32ms2308 KiB
4Accepted3/33ms2408 KiB
5Accepted4/43ms2620 KiB
6Accepted4/42ms2648 KiB
7Accepted4/43ms2772 KiB
8Accepted5/52ms2984 KiB
9Accepted5/52ms3064 KiB
10Accepted5/52ms3260 KiB
11Accepted5/52ms3344 KiB
12Accepted6/62ms3596 KiB
13Accepted6/62ms3716 KiB
14Accepted6/63ms3952 KiB
15Wrong answer0/22ms3892 KiB
16Wrong answer0/22ms3856 KiB