126772024-12-28 07:50:34birozsOszthatóság 31-gyelpython3Accepted 50/5016ms3372 KiB
N = int(input())
lista = []
while N > 0:
    N = N // 10 - 3 * (N % 10)
    if N >= 0:
        lista.append(N)
if N < 0:
    print("NEM")
else:
    print("IGEN")
if len(lista) == 0:
    print()
else:
    for x in lista:
        print(x,end=" ")
SubtaskSumTestVerdictTimeMemory
base50/50
1Accepted0/016ms2872 KiB
2Accepted0/016ms2988 KiB
3Accepted3/316ms2868 KiB
4Accepted3/316ms3064 KiB
5Accepted4/416ms2880 KiB
6Accepted4/416ms3032 KiB
7Accepted4/414ms3064 KiB
8Accepted4/416ms2872 KiB
9Accepted4/414ms2980 KiB
10Accepted4/414ms2960 KiB
11Accepted4/416ms2908 KiB
12Accepted4/416ms2988 KiB
13Accepted4/416ms2872 KiB
14Accepted4/416ms2868 KiB
15Accepted2/216ms3012 KiB
16Accepted2/216ms3372 KiB