16502022-12-01 12:02:26bzsofiaOszthatóság 31-gyelcpp11Wrong answer 48/503ms4100 KiB
#include <iostream>

using namespace std;

long long a, o;

int main()
{
    ios::sync_with_stdio(0);
    cin.tie(0);
    cout.tie(0);

    cin>>a;

    if (a%31==0) cout<<"IGEN";
    else cout<<"NEM";

    cout<<"\n";

    while (a>0)
    {
        a=a/10-(a%10)*3;
        if (a>=0) cout<<a<<" ";
    }

    //cout<<"\n";

    return 0;
}
SubtaskSumTestVerdictTimeMemory
base48/50
1Accepted0/03ms1760 KiB
2Accepted0/02ms1928 KiB
3Accepted3/32ms2128 KiB
4Accepted3/32ms2336 KiB
5Accepted4/42ms2540 KiB
6Accepted4/42ms2892 KiB
7Accepted4/42ms3004 KiB
8Accepted4/42ms3076 KiB
9Accepted4/42ms3272 KiB
10Accepted4/42ms3364 KiB
11Accepted4/42ms3588 KiB
12Accepted4/42ms3940 KiB
13Accepted4/42ms3936 KiB
14Accepted4/42ms4024 KiB
15Accepted2/22ms4096 KiB
16Wrong answer0/22ms4100 KiB