11888 | 2024-11-15 15:41:20 | DianaTaylor | Számjegycsere | pypy3 | Wrong answer 0/100 | 46ms | 19680 KiB |
n=input()
if n[-2:] in ["00","25","50","75"]:
print("0")
elif n[-1:] in ["0"] and n[:-1] in ["5"] or ["0"]:
print("1")
elif n[-1:] in ["5"] and n[:-1] in ["2"] or["7"]:
print("1")
elif n in ["0","0"] or ["2","5"] or ["7","5"] or ["5","0"]:
print("2")
else:
print(-1)
Subtask | Sum | Test | Verdict | Time | Memory | ||
---|---|---|---|---|---|---|---|
subtask1 | 0/0 | ||||||
1 | Wrong answer | 46ms | 19440 KiB | ||||
subtask2 | 0/21 | ||||||
2 | Wrong answer | 39ms | 19440 KiB | ||||
subtask3 | 0/23 | ||||||
3 | Wrong answer | 45ms | 19440 KiB | ||||
4 | Wrong answer | 41ms | 19436 KiB | ||||
5 | Wrong answer | 41ms | 19400 KiB | ||||
6 | Wrong answer | 43ms | 19412 KiB | ||||
7 | Wrong answer | 41ms | 19424 KiB | ||||
8 | Wrong answer | 41ms | 19432 KiB | ||||
9 | Wrong answer | 45ms | 19524 KiB | ||||
10 | Wrong answer | 43ms | 19288 KiB | ||||
11 | Wrong answer | 41ms | 19312 KiB | ||||
12 | Wrong answer | 41ms | 19316 KiB | ||||
13 | Wrong answer | 45ms | 19428 KiB | ||||
14 | Wrong answer | 46ms | 19456 KiB | ||||
15 | Wrong answer | 46ms | 19392 KiB | ||||
16 | Wrong answer | 39ms | 19436 KiB | ||||
17 | Wrong answer | 45ms | 19524 KiB | ||||
18 | Wrong answer | 39ms | 19436 KiB | ||||
19 | Wrong answer | 46ms | 19436 KiB | ||||
20 | Wrong answer | 39ms | 19524 KiB | ||||
21 | Wrong answer | 39ms | 19424 KiB | ||||
22 | Wrong answer | 43ms | 19440 KiB | ||||
23 | Wrong answer | 39ms | 19436 KiB | ||||
subtask4 | 0/41 | ||||||
24 | Wrong answer | 43ms | 19516 KiB | ||||
25 | Wrong answer | 39ms | 19396 KiB | ||||
26 | Wrong answer | 45ms | 19680 KiB | ||||
27 | Wrong answer | 41ms | 19424 KiB | ||||
28 | Wrong answer | 41ms | 19432 KiB | ||||
29 | Wrong answer | 41ms | 19452 KiB | ||||
30 | Wrong answer | 45ms | 19344 KiB | ||||
31 | Wrong answer | 46ms | 19304 KiB | ||||
32 | Wrong answer | 39ms | 19400 KiB | ||||
33 | Wrong answer | 41ms | 19368 KiB | ||||
34 | Wrong answer | 45ms | 19328 KiB | ||||
35 | Wrong answer | 46ms | 19312 KiB | ||||
36 | Wrong answer | 41ms | 19428 KiB | ||||
37 | Wrong answer | 39ms | 19440 KiB | ||||
38 | Wrong answer | 46ms | 19488 KiB | ||||
39 | Wrong answer | 45ms | 19520 KiB | ||||
40 | Wrong answer | 39ms | 19384 KiB | ||||
41 | Wrong answer | 39ms | 19432 KiB | ||||
42 | Wrong answer | 46ms | 19420 KiB | ||||
43 | Wrong answer | 46ms | 19504 KiB | ||||
44 | Wrong answer | 39ms | 19336 KiB | ||||
45 | Wrong answer | 41ms | 19308 KiB | ||||
46 | Wrong answer | 45ms | 19452 KiB | ||||
47 | Wrong answer | 45ms | 19428 KiB | ||||
subtask5 | 0/15 | ||||||
48 | Wrong answer | 41ms | 19492 KiB | ||||
49 | Wrong answer | 45ms | 19376 KiB | ||||
50 | Wrong answer | 43ms | 19480 KiB | ||||
51 | Wrong answer | 39ms | 19564 KiB | ||||
52 | Wrong answer | 46ms | 19424 KiB | ||||
53 | Wrong answer | 45ms | 19316 KiB | ||||
54 | Wrong answer | 39ms | 19500 KiB | ||||
55 | Wrong answer | 39ms | 19324 KiB | ||||
56 | Wrong answer | 41ms | 19348 KiB | ||||
57 | Wrong answer | 46ms | 19384 KiB | ||||
58 | Wrong answer | 46ms | 19540 KiB | ||||
59 | Wrong answer | 46ms | 19516 KiB | ||||
60 | Wrong answer | 41ms | 19440 KiB | ||||
61 | Wrong answer | 39ms | 19524 KiB | ||||
62 | Wrong answer | 45ms | 19292 KiB | ||||
63 | Wrong answer | 39ms | 19324 KiB | ||||
64 | Wrong answer | 45ms | 19440 KiB | ||||
65 | Wrong answer | 39ms | 19440 KiB | ||||
66 | Wrong answer | 45ms | 19456 KiB |