111382024-07-07 14:41:33probaOszthatóság 17-tel (60 pont)python3Runtime error 47/6018ms3088 KiB
#17
#n = 132770
n = int(input())
#print(int(str(n)[:-1]), int(str(n)[-1])*5)
a = []
while (int(str(n)[:-1])-int(str(n)[-1])*5) >= 0:
    n = (int(str(n)[:-1])-int(str(n)[-1])*5)
    a += [n]

print('IGEN' if n % 17 == 0 else 'NEM')
if len(a)==0:
    print('')
else:
    print(' '.join([str(i) for i in a]))



    
SubtaskSumTestVerdictTimeMemory
base47/60
1Accepted0/018ms2960 KiB
2Accepted0/018ms2916 KiB
3Runtime error0/317ms3044 KiB
4Accepted3/318ms2944 KiB
5Accepted4/417ms3044 KiB
6Accepted4/417ms2916 KiB
7Accepted4/418ms3088 KiB
8Accepted5/517ms2916 KiB
9Runtime error0/517ms3064 KiB
10Accepted5/517ms2916 KiB
11Runtime error0/517ms2944 KiB
12Accepted6/617ms3076 KiB
13Accepted6/617ms3044 KiB
14Accepted6/617ms3044 KiB
15Accepted2/217ms3044 KiB
16Accepted2/217ms2916 KiB