16462022-12-01 11:48:13bzsofiaOszthatóság 31-gyelcpp11Wrong answer 48/503ms3332 KiB
#include <iostream>

using namespace std;

long long a, o;

int main()
{
    cin>>a;

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

    cout<<"\n";

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

    return 0;
}
SubtaskSumTestVerdictTimeMemory
base48/50
1Accepted0/03ms1748 KiB
2Accepted0/02ms1908 KiB
3Accepted3/32ms2112 KiB
4Accepted3/32ms2192 KiB
5Accepted4/42ms2328 KiB
6Accepted4/42ms2580 KiB
7Accepted4/42ms2768 KiB
8Accepted4/42ms2624 KiB
9Accepted4/42ms2884 KiB
10Accepted4/42ms2820 KiB
11Accepted4/42ms2832 KiB
12Accepted4/42ms2960 KiB
13Accepted4/42ms3016 KiB
14Accepted4/42ms3136 KiB
15Accepted2/22ms3272 KiB
16Wrong answer0/22ms3332 KiB