112102024-07-16 16:27:51probaOszthatóság 17-tel (60 pont)python3Runtime error 43/6018ms3168 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(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))
else:
    print()
    
SubtaskSumTestVerdictTimeMemory
base43/60
1Accepted0/017ms2960 KiB
2Accepted0/017ms3044 KiB
3Runtime error0/317ms2884 KiB
4Accepted3/317ms3044 KiB
5Accepted4/417ms3044 KiB
6Accepted4/417ms2916 KiB
7Accepted4/417ms3044 KiB
8Accepted5/517ms3044 KiB
9Wrong answer0/517ms2844 KiB
10Accepted5/517ms3012 KiB
11Runtime error0/518ms3060 KiB
12Accepted6/617ms3044 KiB
13Accepted6/618ms3168 KiB
14Accepted6/617ms3076 KiB
15Wrong answer0/217ms2848 KiB
16Wrong answer0/217ms2936 KiB