112092024-07-16 16:15:51probaOszthatóság 17-tel (60 pont)python3Runtime error 47/6018ms3064 KiB
N = int(input())
print((N % 17 != 0)*'NEM'+(N % 17 == 0)*'IGEN')
lista = []
if int(str(N)[:-1])-int(str(N)[-1])*5 == 0:
    print(0)
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)]
   
    print(' '.join(lista))    
    
SubtaskSumTestVerdictTimeMemory
base47/60
1Accepted0/018ms3044 KiB
2Accepted0/017ms2960 KiB
3Runtime error0/317ms3044 KiB
4Accepted3/317ms3024 KiB
5Accepted4/417ms2960 KiB
6Accepted4/417ms2788 KiB
7Accepted4/417ms2980 KiB
8Accepted5/517ms3064 KiB
9Wrong answer0/518ms3044 KiB
10Accepted5/517ms3044 KiB
11Runtime error0/517ms3044 KiB
12Accepted6/617ms3064 KiB
13Accepted6/617ms2844 KiB
14Accepted6/617ms2952 KiB
15Accepted2/217ms2916 KiB
16Accepted2/217ms2960 KiB