125042024-12-20 10:01:55körteOszthatóság 31-gyelpython3Wrong answer 0/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
base0/50
1Wrong answer0/016ms3148 KiB
2Wrong answer0/016ms3104 KiB
3Wrong answer0/316ms3124 KiB
4Wrong answer0/316ms3128 KiB
5Wrong answer0/416ms3124 KiB
6Wrong answer0/416ms3120 KiB
7Wrong answer0/417ms3128 KiB
8Wrong answer0/417ms3320 KiB
9Wrong answer0/416ms3112 KiB
10Wrong answer0/416ms3128 KiB
11Wrong answer0/414ms3112 KiB
12Runtime error0/414ms3016 KiB
13Wrong answer0/416ms2904 KiB
14Wrong answer0/416ms3008 KiB
15Wrong answer0/216ms3128 KiB
16Wrong answer0/214ms2976 KiB