118862024-11-15 15:30:34matthiasSzámjegycserepython3Wrong answer 0/10017ms3568 KiB
N = input()

v = -1
nullas = N.count('0')
if len(N) >= 2:
    if N[-2:] in ['00','25', '50', '75']:
        v = 0
    elif N[-2:] in ['52', '05', '57']:
        v = 1
    elif N[-1] == '5' and (('2' in N) or ('7' in N)):
        v = 1
    elif N[-1] == '0' and (('5' in N) or nullas >= 2):
        v = 1
    elif N[-2] in '72' and '5' in N:
        v = 1
    elif N[-2] == '5' and '0' in N:
        v = 1
    elif N[-2] == '0' and nullas >= 2:
        v = 1
    elif ('5' in N) and (('2' in N) or ('7' in N) or ('0' in N)):
        v = 2
    elif  nullas >= 2:
        v = 2
print(v)
SubtaskSumTestVerdictTimeMemory
subtask10/0
1Wrong answer14ms3004 KiB
subtask20/21
2Wrong answer14ms3048 KiB
subtask30/23
3Wrong answer16ms3128 KiB
4Wrong answer16ms3128 KiB
5Wrong answer16ms3128 KiB
6Wrong answer16ms3128 KiB
7Wrong answer14ms3128 KiB
8Wrong answer16ms3128 KiB
9Wrong answer14ms3068 KiB
10Wrong answer16ms3136 KiB
11Wrong answer16ms2956 KiB
12Wrong answer16ms3116 KiB
13Wrong answer16ms3152 KiB
14Wrong answer16ms2976 KiB
15Wrong answer16ms3180 KiB
16Wrong answer16ms3124 KiB
17Wrong answer16ms3128 KiB
18Wrong answer16ms3128 KiB
19Wrong answer16ms3128 KiB
20Wrong answer17ms3132 KiB
21Wrong answer14ms3072 KiB
22Wrong answer14ms3096 KiB
23Wrong answer16ms3320 KiB
subtask40/41
24Wrong answer16ms3152 KiB
25Wrong answer16ms3128 KiB
26Wrong answer16ms2948 KiB
27Wrong answer16ms2960 KiB
28Wrong answer16ms3128 KiB
29Wrong answer16ms3044 KiB
30Wrong answer16ms3136 KiB
31Wrong answer16ms3308 KiB
32Wrong answer16ms3252 KiB
33Wrong answer16ms3008 KiB
34Wrong answer16ms2960 KiB
35Wrong answer17ms3124 KiB
36Wrong answer14ms3088 KiB
37Wrong answer16ms3028 KiB
38Wrong answer16ms2972 KiB
39Wrong answer16ms3092 KiB
40Wrong answer16ms3400 KiB
41Wrong answer17ms3568 KiB
42Wrong answer16ms3128 KiB
43Wrong answer16ms3116 KiB
44Wrong answer17ms2992 KiB
45Wrong answer16ms2952 KiB
46Wrong answer14ms3172 KiB
47Wrong answer14ms3064 KiB
subtask50/15
48Wrong answer16ms3316 KiB
49Wrong answer16ms3124 KiB
50Wrong answer16ms3128 KiB
51Wrong answer16ms3100 KiB
52Wrong answer16ms3020 KiB
53Wrong answer16ms3164 KiB
54Wrong answer16ms3024 KiB
55Wrong answer16ms3016 KiB
56Wrong answer17ms3128 KiB
57Wrong answer16ms2988 KiB
58Wrong answer14ms3128 KiB
59Wrong answer16ms2960 KiB
60Wrong answer16ms3144 KiB
61Wrong answer16ms3112 KiB
62Wrong answer16ms3164 KiB
63Wrong answer14ms2992 KiB
64Wrong answer16ms3128 KiB
65Wrong answer17ms3316 KiB
66Wrong answer16ms2960 KiB