1022021-01-12 12:26:26Babják PéterOszthatóság 37-telcpp11Wrong answer 36/401ms1888 KiB
#include <iostream>
#include <vector>
#define ll long long
using namespace std;
main()
{
	int n;cin>>n;
	vector<ll>ans;
	bool b=(n%37==0);
	while(n>0)
	{
		int z=n%10;
		n-=z;
		n/=10;
		n-=z*11;
		if(n>=0)
		{
			ans.push_back(n);
		}
	}
	if(b)
	{
		cout<<"IGEN"<<endl;
		for(int u: ans)
		{
			cout<<u<<" ";
		}
	}
	else
	{
		cout<<"NEM"<<endl;
		for(int u: ans)
		{
			cout<<u<<" ";
		}
	}
}
SubtaskSumTestVerdictTimeMemory
base36/40
1Accepted0/01ms1740 KiB
2Accepted0/01ms1764 KiB
3Accepted3/31ms1832 KiB
4Accepted3/31ms1832 KiB
5Accepted3/31ms1840 KiB
6Accepted3/31ms1844 KiB
7Accepted3/31ms1848 KiB
8Accepted3/31ms1844 KiB
9Accepted3/31ms1856 KiB
10Accepted3/31ms1868 KiB
11Accepted3/31ms1864 KiB
12Accepted3/31ms1872 KiB
13Accepted3/31ms1872 KiB
14Accepted3/31ms1876 KiB
15Wrong answer0/21ms1880 KiB
16Wrong answer0/21ms1888 KiB