67392023-12-18 12:44:12rancealexkriszOszthatóság 31-gyelcpp17Wrong answer 48/503ms3224 KiB
#include <iostream>

using namespace std;

int main()
{
int n,uj=0;
cin>>n;
if(n%31==0) cout<<"IGEN"<<endl;
else cout<<"NEM"<<endl;
uj=n;
while(uj>0)
{

    uj=uj/10-(uj%10)*3;
    if (uj>=0) cout<<uj<<" ";

}

    return 0;
}
SubtaskSumTestVerdictTimeMemory
base48/50
1Accepted0/03ms1876 KiB
2Accepted0/03ms2120 KiB
3Accepted3/33ms2332 KiB
4Accepted3/33ms2392 KiB
5Accepted4/42ms2460 KiB
6Accepted4/43ms2592 KiB
7Accepted4/43ms2796 KiB
8Accepted4/43ms3016 KiB
9Accepted4/43ms3196 KiB
10Accepted4/43ms3088 KiB
11Accepted4/43ms3092 KiB
12Accepted4/43ms3092 KiB
13Accepted4/43ms3100 KiB
14Accepted4/43ms3212 KiB
15Accepted2/23ms3220 KiB
16Wrong answer0/23ms3224 KiB