67372023-12-18 12:36:51szabelrOszthatóság 31-gyelcpp17Wrong answer 48/503ms3776 KiB
#include <iostream>

using namespace std;

int main()
{
    int n,x;
    cin>>n;
    if(n%31==0)
        cout<<"IGEN"<<endl;
    else cout<<"NEM"<<endl;
    while(n>0)
    {
        x=n%10;
        if(n/10-(3*x)>=0)
            cout<<n/10-(3*x)<<" ";
        n=n/10-(3*x);
    }
    return 0;
}
SubtaskSumTestVerdictTimeMemory
base48/50
1Accepted0/03ms1872 KiB
2Accepted0/03ms2064 KiB
3Accepted3/33ms2312 KiB
4Accepted3/33ms2560 KiB
5Accepted4/43ms2736 KiB
6Accepted4/43ms2916 KiB
7Accepted4/43ms3160 KiB
8Accepted4/43ms3372 KiB
9Accepted4/43ms3584 KiB
10Accepted4/43ms3668 KiB
11Accepted4/43ms3640 KiB
12Accepted4/43ms3636 KiB
13Accepted4/43ms3644 KiB
14Accepted4/43ms3644 KiB
15Accepted2/23ms3644 KiB
16Wrong answer0/23ms3776 KiB