11961 | 2024-11-22 14:48:51 | DianaTaylor | Számjegycsere | pypy3 | Wrong answer 0/100 | 48ms | 19600 KiB |
n=input()
if int(n)<10:
print("-1")
elif n[-2:] in ["00","25","50","75"]:
print("0")
elif n[-2:] in ["52","05","57"]:
print("1")
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[-2] in ["2"] or ["7"] and n in ["5"]:
print("1")
elif n[-2] in ["5"] or ["0"] and n in ["0"]:
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 | 19476 KiB | ||||
subtask2 | 0/21 | ||||||
2 | Wrong answer | 46ms | 19440 KiB | ||||
subtask3 | 0/23 | ||||||
3 | Wrong answer | 45ms | 19436 KiB | ||||
4 | Wrong answer | 46ms | 19540 KiB | ||||
5 | Wrong answer | 39ms | 19408 KiB | ||||
6 | Wrong answer | 41ms | 19392 KiB | ||||
7 | Wrong answer | 45ms | 19404 KiB | ||||
8 | Wrong answer | 41ms | 19576 KiB | ||||
9 | Wrong answer | 46ms | 19500 KiB | ||||
10 | Wrong answer | 39ms | 19368 KiB | ||||
11 | Wrong answer | 46ms | 19600 KiB | ||||
12 | Wrong answer | 39ms | 19596 KiB | ||||
13 | Wrong answer | 37ms | 19388 KiB | ||||
14 | Wrong answer | 43ms | 19568 KiB | ||||
15 | Wrong answer | 39ms | 19456 KiB | ||||
16 | Wrong answer | 39ms | 19560 KiB | ||||
17 | Wrong answer | 46ms | 19428 KiB | ||||
18 | Wrong answer | 45ms | 19564 KiB | ||||
19 | Wrong answer | 46ms | 19568 KiB | ||||
20 | Wrong answer | 46ms | 19580 KiB | ||||
21 | Wrong answer | 41ms | 19456 KiB | ||||
22 | Wrong answer | 41ms | 19444 KiB | ||||
23 | Wrong answer | 39ms | 19440 KiB | ||||
subtask4 | 0/41 | ||||||
24 | Wrong answer | 39ms | 19436 KiB | ||||
25 | Wrong answer | 43ms | 19560 KiB | ||||
26 | Wrong answer | 43ms | 19428 KiB | ||||
27 | Wrong answer | 39ms | 19516 KiB | ||||
28 | Wrong answer | 48ms | 19560 KiB | ||||
29 | Wrong answer | 39ms | 19440 KiB | ||||
30 | Wrong answer | 39ms | 19384 KiB | ||||
31 | Wrong answer | 43ms | 19436 KiB | ||||
32 | Wrong answer | 45ms | 19436 KiB | ||||
33 | Wrong answer | 39ms | 19440 KiB | ||||
34 | Wrong answer | 45ms | 19440 KiB | ||||
35 | Wrong answer | 39ms | 19432 KiB | ||||
36 | Wrong answer | 46ms | 19436 KiB | ||||
37 | Wrong answer | 39ms | 19488 KiB | ||||
38 | Wrong answer | 39ms | 19428 KiB | ||||
39 | Wrong answer | 45ms | 19368 KiB | ||||
40 | Wrong answer | 45ms | 19436 KiB | ||||
41 | Wrong answer | 39ms | 19452 KiB | ||||
42 | Wrong answer | 39ms | 19436 KiB | ||||
43 | Wrong answer | 45ms | 19424 KiB | ||||
44 | Wrong answer | 45ms | 19440 KiB | ||||
45 | Wrong answer | 39ms | 19428 KiB | ||||
46 | Wrong answer | 39ms | 19452 KiB | ||||
47 | Wrong answer | 45ms | 19500 KiB | ||||
subtask5 | 0/15 | ||||||
48 | Wrong answer | 39ms | 19568 KiB | ||||
49 | Wrong answer | 41ms | 19592 KiB | ||||
50 | Wrong answer | 46ms | 19556 KiB | ||||
51 | Wrong answer | 43ms | 19524 KiB | ||||
52 | Wrong answer | 39ms | 19548 KiB | ||||
53 | Wrong answer | 46ms | 19440 KiB | ||||
54 | Wrong answer | 45ms | 19436 KiB | ||||
55 | Wrong answer | 39ms | 19520 KiB | ||||
56 | Wrong answer | 46ms | 19456 KiB | ||||
57 | Wrong answer | 43ms | 19540 KiB | ||||
58 | Wrong answer | 39ms | 19584 KiB | ||||
59 | Wrong answer | 39ms | 19564 KiB | ||||
60 | Wrong answer | 39ms | 19368 KiB | ||||
61 | Wrong answer | 39ms | 19576 KiB | ||||
62 | Wrong answer | 43ms | 19388 KiB | ||||
63 | Wrong answer | 45ms | 19372 KiB | ||||
64 | Wrong answer | 45ms | 19424 KiB | ||||
65 | Wrong answer | 46ms | 19524 KiB | ||||
66 | Wrong answer | 39ms | 19416 KiB |