11088 | 2024-07-06 21:58:35 | proba | Számjegycsere | python3 | Wrong answer 0/100 | 19ms | 3268 KiB |
# 50, 00, 25, 75
#lista = [int(input()) for i in range(int(input()))]
lista = [25, 1010, 2577]
for i in lista:
ok = False
if i % 25 == 0:
print(0)
ok = True
if not ok and '5' in str(i) and ('2' in str(i) or '7' in str(i)):
if str(i)[-1]=='5' or str(i)[-2]=='2' or str(i)[-2]=='7':
print(1)
ok = True
else:
print(2)
ok = True
if not ok and '0' in str(i) and '5' in str(i):
if str(i)[-1] == '0' or str(i)[-2]=='5':
print(1)
ok = True
else:
print(2)
ok = True
if not ok and str(i).count('0')>1:
if str(i)[-1]=='0' or str(i)[-2]=='0':
print(1)
ok = True
else:
print(2)
ok = True
if not ok:
print(-1)
Subtask | Sum | Test | Verdict | Time | Memory | ||
---|---|---|---|---|---|---|---|
subtask1 | 0/0 | ||||||
1 | Wrong answer | 17ms | 3088 KiB | ||||
subtask2 | 0/21 | ||||||
2 | Wrong answer | 17ms | 3048 KiB | ||||
subtask3 | 0/23 | ||||||
3 | Wrong answer | 17ms | 3088 KiB | ||||
4 | Wrong answer | 18ms | 3100 KiB | ||||
5 | Wrong answer | 18ms | 3044 KiB | ||||
6 | Wrong answer | 18ms | 3088 KiB | ||||
7 | Wrong answer | 19ms | 3044 KiB | ||||
8 | Wrong answer | 17ms | 3024 KiB | ||||
9 | Wrong answer | 18ms | 3268 KiB | ||||
10 | Wrong answer | 17ms | 3044 KiB | ||||
11 | Wrong answer | 18ms | 3176 KiB | ||||
12 | Wrong answer | 18ms | 3068 KiB | ||||
13 | Wrong answer | 17ms | 3172 KiB | ||||
14 | Wrong answer | 17ms | 3192 KiB | ||||
15 | Wrong answer | 17ms | 3064 KiB | ||||
16 | Wrong answer | 17ms | 3160 KiB | ||||
17 | Wrong answer | 17ms | 3064 KiB | ||||
18 | Wrong answer | 17ms | 3064 KiB | ||||
19 | Wrong answer | 17ms | 3168 KiB | ||||
20 | Wrong answer | 17ms | 3216 KiB | ||||
21 | Wrong answer | 17ms | 3044 KiB | ||||
22 | Wrong answer | 17ms | 3120 KiB | ||||
23 | Wrong answer | 17ms | 3192 KiB | ||||
subtask4 | 0/41 | ||||||
24 | Wrong answer | 18ms | 2916 KiB | ||||
25 | Wrong answer | 17ms | 3116 KiB | ||||
26 | Wrong answer | 18ms | 3236 KiB | ||||
27 | Wrong answer | 17ms | 3084 KiB | ||||
28 | Wrong answer | 17ms | 3100 KiB | ||||
29 | Wrong answer | 17ms | 3100 KiB | ||||
30 | Wrong answer | 17ms | 3044 KiB | ||||
31 | Wrong answer | 17ms | 3044 KiB | ||||
32 | Wrong answer | 17ms | 2980 KiB | ||||
33 | Wrong answer | 17ms | 3088 KiB | ||||
34 | Wrong answer | 17ms | 3108 KiB | ||||
35 | Wrong answer | 17ms | 3044 KiB | ||||
36 | Wrong answer | 17ms | 3088 KiB | ||||
37 | Wrong answer | 17ms | 3188 KiB | ||||
38 | Wrong answer | 17ms | 3044 KiB | ||||
39 | Wrong answer | 17ms | 3044 KiB | ||||
40 | Wrong answer | 17ms | 3100 KiB | ||||
41 | Wrong answer | 17ms | 3044 KiB | ||||
42 | Wrong answer | 17ms | 3064 KiB | ||||
43 | Wrong answer | 17ms | 3068 KiB | ||||
44 | Wrong answer | 17ms | 3088 KiB | ||||
45 | Wrong answer | 18ms | 3052 KiB | ||||
46 | Wrong answer | 17ms | 3144 KiB | ||||
47 | Wrong answer | 17ms | 3192 KiB | ||||
subtask5 | 0/15 | ||||||
48 | Wrong answer | 17ms | 3088 KiB | ||||
49 | Wrong answer | 18ms | 3232 KiB | ||||
50 | Wrong answer | 17ms | 2916 KiB | ||||
51 | Wrong answer | 17ms | 3044 KiB | ||||
52 | Wrong answer | 18ms | 2916 KiB | ||||
53 | Wrong answer | 18ms | 3108 KiB | ||||
54 | Wrong answer | 17ms | 2916 KiB | ||||
55 | Wrong answer | 17ms | 3064 KiB | ||||
56 | Wrong answer | 17ms | 3044 KiB | ||||
57 | Wrong answer | 17ms | 3088 KiB | ||||
58 | Wrong answer | 17ms | 3172 KiB | ||||
59 | Wrong answer | 17ms | 2916 KiB | ||||
60 | Wrong answer | 17ms | 3048 KiB | ||||
61 | Wrong answer | 17ms | 3028 KiB | ||||
62 | Wrong answer | 17ms | 3192 KiB | ||||
63 | Wrong answer | 17ms | 3044 KiB | ||||
64 | Wrong answer | 17ms | 2972 KiB | ||||
65 | Wrong answer | 17ms | 3052 KiB | ||||
66 | Wrong answer | 17ms | 3192 KiB |