111372024-07-07 14:41:03probaOszthatóság 17-tel (60 pont)python3Runtime error 47/6018ms3100 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/017ms3044 KiB
2Accepted0/017ms3044 KiB
3Runtime error0/317ms3044 KiB
4Accepted3/317ms3100 KiB
5Accepted4/417ms2844 KiB
6Accepted4/417ms2916 KiB
7Accepted4/417ms2916 KiB
8Accepted5/517ms3048 KiB
9Wrong answer0/517ms2916 KiB
10Accepted5/517ms2916 KiB
11Runtime error0/517ms2960 KiB
12Accepted6/617ms3044 KiB
13Accepted6/617ms3044 KiB
14Accepted6/618ms3044 KiB
15Accepted2/218ms2916 KiB
16Accepted2/217ms2936 KiB