67382023-12-18 12:41:16rancealexkriszOszthatóság 31-gyelcpp17Wrong answer 25/503ms3788 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;
    cout<<uj<<" ";

}

    return 0;
}
SubtaskSumTestVerdictTimeMemory
base25/50
1Accepted0/03ms1876 KiB
2Wrong answer0/03ms2120 KiB
3Wrong answer0/33ms2532 KiB
4Accepted3/33ms2528 KiB
5Accepted4/43ms2600 KiB
6Wrong answer0/43ms2488 KiB
7Wrong answer0/43ms2608 KiB
8Accepted4/43ms2904 KiB
9Accepted4/43ms2968 KiB
10Wrong answer0/43ms2972 KiB
11Accepted4/43ms3104 KiB
12Wrong answer0/43ms3336 KiB
13Wrong answer0/43ms3548 KiB
14Accepted4/43ms3520 KiB
15Accepted2/23ms3788 KiB
16Wrong answer0/23ms3732 KiB