11090 | 2024-07-06 22:07:04 | proba | Számjegycsere | python3 | Wrong answer 0/100 | 398ms | 7836 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]=='2' or str(i)[-2]=='7':
print(1)
tovabb = False
else:
if str(i)[-2]=='5' or 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] == '0' or str(i)[-2]=='5':
print(1)
tovabb = False
else:
if str(i)[-1] == '5' or 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 | 134ms | 4852 KiB | ||||
subtask3 | 0/23 | ||||||
3 | Wrong answer | 328ms | 7484 KiB | ||||
4 | Wrong answer | 326ms | 7812 KiB | ||||
5 | Wrong answer | 330ms | 7644 KiB | ||||
6 | Wrong answer | 337ms | 7644 KiB | ||||
7 | Wrong answer | 330ms | 7788 KiB | ||||
8 | Wrong answer | 384ms | 7648 KiB | ||||
9 | Wrong answer | 337ms | 7752 KiB | ||||
10 | Wrong answer | 326ms | 7812 KiB | ||||
11 | Wrong answer | 331ms | 7644 KiB | ||||
12 | Wrong answer | 342ms | 7772 KiB | ||||
13 | Wrong answer | 356ms | 7644 KiB | ||||
14 | Wrong answer | 326ms | 7640 KiB | ||||
15 | Wrong answer | 330ms | 7644 KiB | ||||
16 | Wrong answer | 398ms | 7644 KiB | ||||
17 | Wrong answer | 331ms | 7644 KiB | ||||
18 | Wrong answer | 337ms | 7644 KiB | ||||
19 | Wrong answer | 358ms | 7648 KiB | ||||
20 | Wrong answer | 358ms | 7684 KiB | ||||
21 | Wrong answer | 326ms | 7836 KiB | ||||
22 | Wrong answer | 335ms | 7784 KiB | ||||
23 | Wrong answer | 331ms | 7648 KiB | ||||
subtask4 | 0/41 | ||||||
24 | Accepted | 19ms | 3044 KiB | ||||
25 | Accepted | 19ms | 3188 KiB | ||||
26 | Accepted | 18ms | 3084 KiB | ||||
27 | Accepted | 18ms | 3088 KiB | ||||
28 | Accepted | 18ms | 3048 KiB | ||||
29 | Accepted | 18ms | 3172 KiB | ||||
30 | Accepted | 17ms | 3192 KiB | ||||
31 | Accepted | 18ms | 3172 KiB | ||||
32 | Accepted | 18ms | 3172 KiB | ||||
33 | Wrong answer | 19ms | 3300 KiB | ||||
34 | Accepted | 18ms | 2976 KiB | ||||
35 | Accepted | 18ms | 3044 KiB | ||||
36 | Accepted | 21ms | 3180 KiB | ||||
37 | Accepted | 45ms | 3356 KiB | ||||
38 | Accepted | 18ms | 3096 KiB | ||||
39 | Accepted | 17ms | 3044 KiB | ||||
40 | Accepted | 19ms | 3196 KiB | ||||
41 | Accepted | 18ms | 3172 KiB | ||||
42 | Accepted | 20ms | 3100 KiB | ||||
43 | Accepted | 20ms | 3172 KiB | ||||
44 | Accepted | 20ms | 3172 KiB | ||||
45 | Accepted | 23ms | 3248 KiB | ||||
46 | Wrong answer | 18ms | 3044 KiB | ||||
47 | Wrong answer | 20ms | 3300 KiB | ||||
subtask5 | 0/15 | ||||||
48 | Wrong answer | 171ms | 3684 KiB | ||||
49 | Runtime error | 17ms | 3304 KiB | ||||
50 | Wrong answer | 381ms | 7624 KiB | ||||
51 | Runtime error | 17ms | 3172 KiB | ||||
52 | Wrong answer | 120ms | 4480 KiB | ||||
53 | Runtime error | 17ms | 3064 KiB | ||||
54 | Accepted | 104ms | 3728 KiB | ||||
55 | Accepted | 65ms | 4196 KiB | ||||
56 | Accepted | 305ms | 7516 KiB | ||||
57 | Runtime error | 17ms | 3300 KiB | ||||
58 | Runtime error | 18ms | 3440 KiB | ||||
59 | Runtime error | 17ms | 3300 KiB | ||||
60 | Accepted | 98ms | 3728 KiB | ||||
61 | Accepted | 98ms | 3684 KiB | ||||
62 | Accepted | 143ms | 3568 KiB | ||||
63 | Accepted | 100ms | 3632 KiB | ||||
64 | Accepted | 301ms | 7652 KiB | ||||
65 | Accepted | 303ms | 7780 KiB | ||||
66 | Accepted | 303ms | 7704 KiB |