11086 | 2024-07-06 21:26:48 | proba | Számjegycsere | python3 | Wrong answer 0/100 | 377ms | 8760 KiB |
lista = [int(input()) for i in range(int(input()))]
for i in lista:
if i % 25 == 0:
print(0)
elif str(i)[-1] == "0":
if str(i).count('5') > 0 or str(i).count('0') > 0:
print(1)
elif str(i)[-1] == "5":
if str(i).count('2') > 0 or str(i).count('7') > 0:
print(1)
elif str(i)[-2] == "2" or str(i)[-2] == "7":
if str(i).count('5') > 0:
print(1)
elif str(i).count('0')>1 or (str(i).count('5')>0 and ('2' in str(i) or '7' in str(i) or '0' in str(i))):
print(2)
Subtask | Sum | Test | Verdict | Time | Memory | ||
---|---|---|---|---|---|---|---|
subtask1 | 0/0 | ||||||
1 | Accepted | 17ms | 3044 KiB | ||||
subtask2 | 0/21 | ||||||
2 | Wrong answer | 127ms | 5056 KiB | ||||
subtask3 | 0/23 | ||||||
3 | Runtime error | 328ms | 8000 KiB | ||||
4 | Wrong answer | 337ms | 8064 KiB | ||||
5 | Wrong answer | 331ms | 8360 KiB | ||||
6 | Wrong answer | 335ms | 8172 KiB | ||||
7 | Wrong answer | 335ms | 8164 KiB | ||||
8 | Wrong answer | 370ms | 8136 KiB | ||||
9 | Wrong answer | 331ms | 8136 KiB | ||||
10 | Wrong answer | 338ms | 8284 KiB | ||||
11 | Wrong answer | 333ms | 8136 KiB | ||||
12 | Wrong answer | 331ms | 8136 KiB | ||||
13 | Wrong answer | 335ms | 8248 KiB | ||||
14 | Wrong answer | 333ms | 8308 KiB | ||||
15 | Wrong answer | 340ms | 8304 KiB | ||||
16 | Wrong answer | 377ms | 8332 KiB | ||||
17 | Wrong answer | 340ms | 8452 KiB | ||||
18 | Wrong answer | 340ms | 8376 KiB | ||||
19 | Wrong answer | 335ms | 8504 KiB | ||||
20 | Wrong answer | 331ms | 8760 KiB | ||||
21 | Wrong answer | 344ms | 8376 KiB | ||||
22 | Wrong answer | 342ms | 8564 KiB | ||||
23 | Wrong answer | 342ms | 8504 KiB | ||||
subtask4 | 0/41 | ||||||
24 | Wrong answer | 19ms | 3228 KiB | ||||
25 | Wrong answer | 18ms | 3044 KiB | ||||
26 | Wrong answer | 19ms | 3060 KiB | ||||
27 | Wrong answer | 19ms | 3044 KiB | ||||
28 | Wrong answer | 19ms | 3060 KiB | ||||
29 | Wrong answer | 19ms | 3080 KiB | ||||
30 | Wrong answer | 18ms | 3316 KiB | ||||
31 | Wrong answer | 19ms | 3180 KiB | ||||
32 | Wrong answer | 19ms | 3044 KiB | ||||
33 | Wrong answer | 19ms | 3044 KiB | ||||
34 | Wrong answer | 19ms | 2988 KiB | ||||
35 | Wrong answer | 18ms | 3176 KiB | ||||
36 | Wrong answer | 20ms | 3036 KiB | ||||
37 | Runtime error | 28ms | 3300 KiB | ||||
38 | Wrong answer | 18ms | 3104 KiB | ||||
39 | Wrong answer | 17ms | 2928 KiB | ||||
40 | Wrong answer | 17ms | 3064 KiB | ||||
41 | Wrong answer | 17ms | 3192 KiB | ||||
42 | Wrong answer | 21ms | 3044 KiB | ||||
43 | Wrong answer | 20ms | 3048 KiB | ||||
44 | Wrong answer | 20ms | 3056 KiB | ||||
45 | Wrong answer | 20ms | 3088 KiB | ||||
46 | Wrong answer | 18ms | 3172 KiB | ||||
47 | Wrong answer | 20ms | 3172 KiB | ||||
subtask5 | 0/15 | ||||||
48 | Wrong answer | 129ms | 4576 KiB | ||||
49 | Runtime error | 17ms | 3464 KiB | ||||
50 | Wrong answer | 365ms | 8568 KiB | ||||
51 | Runtime error | 18ms | 3192 KiB | ||||
52 | Runtime error | 46ms | 5276 KiB | ||||
53 | Runtime error | 17ms | 3044 KiB | ||||
54 | Wrong answer | 153ms | 4408 KiB | ||||
55 | Wrong answer | 78ms | 4840 KiB | ||||
56 | Wrong answer | 328ms | 8068 KiB | ||||
57 | Runtime error | 17ms | 3428 KiB | ||||
58 | Runtime error | 17ms | 3428 KiB | ||||
59 | Runtime error | 18ms | 3428 KiB | ||||
60 | Wrong answer | 165ms | 4496 KiB | ||||
61 | Wrong answer | 165ms | 4508 KiB | ||||
62 | Wrong answer | 123ms | 4472 KiB | ||||
63 | Wrong answer | 165ms | 4412 KiB | ||||
64 | Wrong answer | 308ms | 8132 KiB | ||||
65 | Wrong answer | 351ms | 8128 KiB | ||||
66 | Wrong answer | 344ms | 8192 KiB |