11087 | 2024-07-06 21:28:57 | proba | Számjegycsere | python3 | Wrong answer 0/100 | 379ms | 7568 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 | 129ms | 4800 KiB | ||||
subtask3 | 0/23 | ||||||
3 | Runtime error | 330ms | 7428 KiB | ||||
4 | Wrong answer | 331ms | 7368 KiB | ||||
5 | Wrong answer | 342ms | 7496 KiB | ||||
6 | Wrong answer | 340ms | 7412 KiB | ||||
7 | Wrong answer | 335ms | 7368 KiB | ||||
8 | Wrong answer | 379ms | 7540 KiB | ||||
9 | Wrong answer | 335ms | 7412 KiB | ||||
10 | Wrong answer | 331ms | 7444 KiB | ||||
11 | Wrong answer | 337ms | 7568 KiB | ||||
12 | Wrong answer | 337ms | 7488 KiB | ||||
13 | Wrong answer | 342ms | 7472 KiB | ||||
14 | Wrong answer | 333ms | 7540 KiB | ||||
15 | Wrong answer | 337ms | 7500 KiB | ||||
16 | Wrong answer | 377ms | 7480 KiB | ||||
17 | Wrong answer | 335ms | 7480 KiB | ||||
18 | Wrong answer | 338ms | 7500 KiB | ||||
19 | Wrong answer | 328ms | 7480 KiB | ||||
20 | Wrong answer | 331ms | 7480 KiB | ||||
21 | Wrong answer | 345ms | 7416 KiB | ||||
22 | Wrong answer | 337ms | 7480 KiB | ||||
23 | Wrong answer | 342ms | 7348 KiB | ||||
subtask4 | 0/41 | ||||||
24 | Wrong answer | 18ms | 3140 KiB | ||||
25 | Wrong answer | 19ms | 3192 KiB | ||||
26 | Wrong answer | 18ms | 3340 KiB | ||||
27 | Wrong answer | 18ms | 3124 KiB | ||||
28 | Wrong answer | 18ms | 3044 KiB | ||||
29 | Wrong answer | 19ms | 3044 KiB | ||||
30 | Wrong answer | 18ms | 3044 KiB | ||||
31 | Wrong answer | 18ms | 3192 KiB | ||||
32 | Wrong answer | 20ms | 3088 KiB | ||||
33 | Wrong answer | 19ms | 3172 KiB | ||||
34 | Wrong answer | 19ms | 3044 KiB | ||||
35 | Wrong answer | 18ms | 3044 KiB | ||||
36 | Wrong answer | 20ms | 2984 KiB | ||||
37 | Runtime error | 28ms | 3292 KiB | ||||
38 | Wrong answer | 18ms | 3088 KiB | ||||
39 | Wrong answer | 17ms | 3180 KiB | ||||
40 | Wrong answer | 18ms | 2996 KiB | ||||
41 | Wrong answer | 18ms | 3044 KiB | ||||
42 | Wrong answer | 21ms | 3008 KiB | ||||
43 | Wrong answer | 20ms | 3060 KiB | ||||
44 | Wrong answer | 20ms | 2936 KiB | ||||
45 | Wrong answer | 20ms | 3188 KiB | ||||
46 | Wrong answer | 18ms | 3188 KiB | ||||
47 | Wrong answer | 20ms | 2992 KiB | ||||
subtask5 | 0/15 | ||||||
48 | Wrong answer | 129ms | 3508 KiB | ||||
49 | Runtime error | 17ms | 3320 KiB | ||||
50 | Wrong answer | 367ms | 7532 KiB | ||||
51 | Runtime error | 17ms | 3316 KiB | ||||
52 | Runtime error | 48ms | 4360 KiB | ||||
53 | Runtime error | 17ms | 3064 KiB | ||||
54 | Wrong answer | 155ms | 3476 KiB | ||||
55 | Wrong answer | 76ms | 3960 KiB | ||||
56 | Wrong answer | 324ms | 7104 KiB | ||||
57 | Runtime error | 18ms | 3172 KiB | ||||
58 | Runtime error | 17ms | 3448 KiB | ||||
59 | Runtime error | 18ms | 3172 KiB | ||||
60 | Wrong answer | 165ms | 3556 KiB | ||||
61 | Wrong answer | 165ms | 3600 KiB | ||||
62 | Wrong answer | 122ms | 3684 KiB | ||||
63 | Wrong answer | 165ms | 3556 KiB | ||||
64 | Wrong answer | 307ms | 6956 KiB | ||||
65 | Wrong answer | 345ms | 6976 KiB | ||||
66 | Wrong answer | 347ms | 7144 KiB |