11092 | 2024-07-06 22:16:51 | proba | Számjegycsere | python3 | Wrong answer 0/100 | 347ms | 8044 KiB |
# 50, 00, 25, 75
lista = [int(input()) for i in range(int(input()))]
for i in lista:
tovabb = True
# osztható 25-tel
if i % 25 == 0:
print(0)
tovabb = False
# van benne 5-ös továbbá 2 vagy 7-es
if tovabb and '5' in str(i) and ('2' in str(i) or '7' in str(i)):
if str(i)[-1]=='5' or (str(i)[-2]=='5' and (str(i)[-1]=='2' or str(i)[-1]=='7')):
print(1)
tovabb = False
else:
print(2)
tovabb = False
# van benne 5-ös és 0
if tovabb and '0' in str(i) and '5' in str(i):
if str(i)[-1] == '5' and str(i)[-2]=='0':
print(1)
tovabb = False
else:
print(2)
tovabb = False
# ha van benne 2 nulla
if tovabb and str(i).count('0')>1:
if str(i)[-1]=='0' or str(i)[-2]=='0':
print(1)
tovabb = False
else:
print(2)
tovabb = False
if tovabb:
print(-1)
Subtask | Sum | Test | Verdict | Time | Memory | ||
---|---|---|---|---|---|---|---|
subtask1 | 0/0 | ||||||
1 | Accepted | 17ms | 3044 KiB | ||||
subtask2 | 0/21 | ||||||
2 | Wrong answer | 122ms | 4944 KiB | ||||
subtask3 | 0/23 | ||||||
3 | Wrong answer | 314ms | 7636 KiB | ||||
4 | Wrong answer | 314ms | 7640 KiB | ||||
5 | Wrong answer | 300ms | 7604 KiB | ||||
6 | Wrong answer | 331ms | 7764 KiB | ||||
7 | Wrong answer | 310ms | 7636 KiB | ||||
8 | Wrong answer | 326ms | 7640 KiB | ||||
9 | Wrong answer | 319ms | 7648 KiB | ||||
10 | Wrong answer | 319ms | 7692 KiB | ||||
11 | Wrong answer | 312ms | 7636 KiB | ||||
12 | Wrong answer | 312ms | 7784 KiB | ||||
13 | Wrong answer | 335ms | 7776 KiB | ||||
14 | Wrong answer | 307ms | 7636 KiB | ||||
15 | Wrong answer | 321ms | 7784 KiB | ||||
16 | Wrong answer | 328ms | 7784 KiB | ||||
17 | Wrong answer | 317ms | 7652 KiB | ||||
18 | Wrong answer | 314ms | 7768 KiB | ||||
19 | Wrong answer | 335ms | 8044 KiB | ||||
20 | Wrong answer | 330ms | 7640 KiB | ||||
21 | Wrong answer | 310ms | 7700 KiB | ||||
22 | Wrong answer | 316ms | 7640 KiB | ||||
23 | Wrong answer | 317ms | 7640 KiB | ||||
subtask4 | 0/41 | ||||||
24 | Accepted | 18ms | 3044 KiB | ||||
25 | Accepted | 19ms | 3040 KiB | ||||
26 | Accepted | 19ms | 3188 KiB | ||||
27 | Accepted | 19ms | 3320 KiB | ||||
28 | Accepted | 19ms | 3044 KiB | ||||
29 | Accepted | 18ms | 3084 KiB | ||||
30 | Accepted | 18ms | 3176 KiB | ||||
31 | Accepted | 17ms | 3044 KiB | ||||
32 | Accepted | 18ms | 2948 KiB | ||||
33 | Wrong answer | 18ms | 2972 KiB | ||||
34 | Accepted | 18ms | 3192 KiB | ||||
35 | Accepted | 17ms | 3060 KiB | ||||
36 | Accepted | 20ms | 3228 KiB | ||||
37 | Accepted | 46ms | 3428 KiB | ||||
38 | Accepted | 19ms | 3172 KiB | ||||
39 | Accepted | 17ms | 3064 KiB | ||||
40 | Accepted | 18ms | 3020 KiB | ||||
41 | Accepted | 18ms | 3056 KiB | ||||
42 | Accepted | 20ms | 3172 KiB | ||||
43 | Accepted | 20ms | 3320 KiB | ||||
44 | Accepted | 20ms | 3320 KiB | ||||
45 | Accepted | 21ms | 3188 KiB | ||||
46 | Wrong answer | 17ms | 3044 KiB | ||||
47 | Wrong answer | 20ms | 3172 KiB | ||||
subtask5 | 0/15 | ||||||
48 | Wrong answer | 119ms | 3684 KiB | ||||
49 | Runtime error | 18ms | 3304 KiB | ||||
50 | Wrong answer | 347ms | 7632 KiB | ||||
51 | Runtime error | 18ms | 3044 KiB | ||||
52 | Wrong answer | 98ms | 4528 KiB | ||||
53 | Runtime error | 17ms | 3064 KiB | ||||
54 | Accepted | 104ms | 3684 KiB | ||||
55 | Accepted | 65ms | 4196 KiB | ||||
56 | Accepted | 305ms | 7644 KiB | ||||
57 | Runtime error | 18ms | 3172 KiB | ||||
58 | Runtime error | 17ms | 3304 KiB | ||||
59 | Runtime error | 18ms | 3300 KiB | ||||
60 | Accepted | 100ms | 3684 KiB | ||||
61 | Accepted | 100ms | 3556 KiB | ||||
62 | Accepted | 143ms | 3684 KiB | ||||
63 | Accepted | 101ms | 3684 KiB | ||||
64 | Accepted | 308ms | 7552 KiB | ||||
65 | Accepted | 303ms | 7504 KiB | ||||
66 | Accepted | 305ms | 7632 KiB |