111362024-07-07 14:39:34probaOszthatóság 17-tel (60 pont)python3Runtime error 47/6018ms3064 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')
print(' '.join([str(i) for i in a]))



    
SubtaskSumTestVerdictTimeMemory
base47/60
1Accepted0/017ms2916 KiB
2Accepted0/017ms2916 KiB
3Runtime error0/317ms2952 KiB
4Accepted3/318ms2960 KiB
5Accepted4/417ms2916 KiB
6Accepted4/417ms2928 KiB
7Accepted4/418ms3044 KiB
8Accepted5/517ms2916 KiB
9Wrong answer0/517ms2916 KiB
10Accepted5/517ms2844 KiB
11Runtime error0/517ms3064 KiB
12Accepted6/617ms2916 KiB
13Accepted6/617ms2936 KiB
14Accepted6/617ms2992 KiB
15Accepted2/217ms2916 KiB
16Accepted2/217ms3044 KiB