125062024-12-20 13:39:18körteOszthatóság 31-gyelpython3Runtime error 44/5017ms3324 KiB
N = input()
e = []
while not(int(N) <= 0):
    N = str(N)
    elso = int(N[:-1])
    masodik = int(N[-1])
    if int(N) >= 10:
        e.append(elso-masodik*3)
        N = elso-masodik*3
    else:
        e.append(N)
        N = -1
if e[-1] < 0:
    print("NEM")
    for i in range(len(e)-1):
        print(e[i], end = " ")
else:
    print("IGEN")
    for i in range(len(e)):
        print(e[i], end = " ")
        
SubtaskSumTestVerdictTimeMemory
base44/50
1Accepted0/016ms3324 KiB
2Accepted0/016ms2872 KiB
3Accepted3/316ms3128 KiB
4Accepted3/316ms3120 KiB
5Accepted4/417ms3256 KiB
6Accepted4/416ms3128 KiB
7Accepted4/416ms3124 KiB
8Accepted4/416ms2944 KiB
9Accepted4/416ms2976 KiB
10Accepted4/414ms2944 KiB
11Accepted4/416ms3108 KiB
12Runtime error0/414ms2876 KiB
13Accepted4/414ms3108 KiB
14Accepted4/416ms3128 KiB
15Accepted2/216ms3044 KiB
16Wrong answer0/214ms3036 KiB