125052024-12-20 10:02:32körteOszthatóság 31-gyelpython3Runtime error 44/5017ms3320 KiB
N = input()
e = []
while int(N) > 0:
    N = str(N)
    if int(N[0:-1]) - int(N[-1])*3 >= 0:
        e.append(int(N[0:-1]) - int(N[-1])*3)
    N = (int(N[0:-1]) - int(N[-1])*3)
if N < 0:
    print("NEM")
else:
    print("IGEN")
for i in range(len(e)):
    print(e[i], end = " ")
SubtaskSumTestVerdictTimeMemory
base44/50
1Accepted0/016ms3116 KiB
2Accepted0/016ms3124 KiB
3Accepted3/316ms3128 KiB
4Accepted3/316ms3128 KiB
5Accepted4/416ms3132 KiB
6Accepted4/416ms3144 KiB
7Accepted4/416ms3128 KiB
8Accepted4/416ms3128 KiB
9Accepted4/416ms3296 KiB
10Accepted4/416ms3320 KiB
11Accepted4/414ms3128 KiB
12Runtime error0/416ms3096 KiB
13Accepted4/417ms3084 KiB
14Accepted4/416ms3068 KiB
15Accepted2/216ms3128 KiB
16Wrong answer0/216ms3060 KiB