112112024-07-16 16:31:35probaOszthatóság 17-tel (60 pont)python3Runtime error 47/6018ms3192 KiB
N = int(input())
print((N % 17 != 0)*'NEM'+(N % 17 == 0)*'IGEN')
lista = []
if len(str(N))>1:
    if int(str(N)[:-1])-int(str(N)[-1])*5 <= 0:
        print()
    else:    
        while int(str(N)[:-1])-int(str(N)[-1])*5 > 0:
            N = int(str(N)[:-1])-int(str(N)[-1])*5
            lista += [str(N)]
   
        if len(lista) > 0:
            print(' '.join(lista))
        else:
            print(0)
else:
    print()
    
SubtaskSumTestVerdictTimeMemory
base47/60
1Accepted0/018ms3044 KiB
2Accepted0/017ms3088 KiB
3Runtime error0/317ms2988 KiB
4Accepted3/317ms3044 KiB
5Accepted4/418ms3044 KiB
6Accepted4/417ms2844 KiB
7Accepted4/417ms3064 KiB
8Accepted5/517ms3044 KiB
9Wrong answer0/518ms3080 KiB
10Accepted5/517ms2844 KiB
11Runtime error0/517ms3044 KiB
12Accepted6/617ms3192 KiB
13Accepted6/617ms2844 KiB
14Accepted6/617ms3172 KiB
15Accepted2/217ms3048 KiB
16Accepted2/217ms3044 KiB