12040 | 2024-11-26 12:19:31 | kbarnabas | Számjegycsere | python3 | Wrong answer 0/100 | 240ms | 3388 KiB |
n = int(input())
lepes = 0
for i in range(n):
a = input()
if int(a)%25==0:
print(0)
elif a[-1] in '0257' and a[:-1] in '0257':
print(1)
elif a[-2] in '0257' and a[:-2] in '0257':
print(1)
elif a[-2:] in '52' or a[-2:] in '05' or a[-2:] in '57':
print(1)
Subtask | Sum | Test | Verdict | Time | Memory | ||
---|---|---|---|---|---|---|---|
subtask1 | 0/0 | ||||||
1 | Wrong answer | 16ms | 2872 KiB | ||||
subtask2 | 0/21 | ||||||
2 | Wrong answer | 101ms | 3128 KiB | ||||
subtask3 | 0/23 | ||||||
3 | Runtime error | 238ms | 3124 KiB | ||||
4 | Wrong answer | 233ms | 3124 KiB | ||||
5 | Wrong answer | 231ms | 3128 KiB | ||||
6 | Wrong answer | 231ms | 3124 KiB | ||||
7 | Wrong answer | 232ms | 3128 KiB | ||||
8 | Wrong answer | 232ms | 3000 KiB | ||||
9 | Wrong answer | 232ms | 3112 KiB | ||||
10 | Wrong answer | 234ms | 3128 KiB | ||||
11 | Wrong answer | 236ms | 2960 KiB | ||||
12 | Wrong answer | 240ms | 2904 KiB | ||||
13 | Wrong answer | 234ms | 3128 KiB | ||||
14 | Wrong answer | 231ms | 3140 KiB | ||||
15 | Wrong answer | 232ms | 3108 KiB | ||||
16 | Wrong answer | 232ms | 3108 KiB | ||||
17 | Wrong answer | 240ms | 3128 KiB | ||||
18 | Wrong answer | 236ms | 3140 KiB | ||||
19 | Wrong answer | 232ms | 3128 KiB | ||||
20 | Wrong answer | 231ms | 2916 KiB | ||||
21 | Wrong answer | 231ms | 2940 KiB | ||||
22 | Wrong answer | 232ms | 2952 KiB | ||||
23 | Wrong answer | 232ms | 3012 KiB | ||||
subtask4 | 0/41 | ||||||
24 | Wrong answer | 17ms | 3128 KiB | ||||
25 | Wrong answer | 16ms | 3128 KiB | ||||
26 | Wrong answer | 16ms | 2872 KiB | ||||
27 | Wrong answer | 16ms | 3128 KiB | ||||
28 | Wrong answer | 14ms | 3072 KiB | ||||
29 | Wrong answer | 17ms | 2992 KiB | ||||
30 | Wrong answer | 14ms | 2944 KiB | ||||
31 | Wrong answer | 14ms | 3072 KiB | ||||
32 | Wrong answer | 17ms | 2872 KiB | ||||
33 | Wrong answer | 16ms | 2872 KiB | ||||
34 | Wrong answer | 17ms | 3320 KiB | ||||
35 | Wrong answer | 14ms | 3104 KiB | ||||
36 | Wrong answer | 18ms | 3128 KiB | ||||
37 | Runtime error | 17ms | 3060 KiB | ||||
38 | Wrong answer | 16ms | 3100 KiB | ||||
39 | Wrong answer | 16ms | 2892 KiB | ||||
40 | Wrong answer | 16ms | 3128 KiB | ||||
41 | Wrong answer | 17ms | 3100 KiB | ||||
42 | Wrong answer | 17ms | 3132 KiB | ||||
43 | Wrong answer | 17ms | 3120 KiB | ||||
44 | Wrong answer | 17ms | 3012 KiB | ||||
45 | Wrong answer | 17ms | 2984 KiB | ||||
46 | Wrong answer | 16ms | 3112 KiB | ||||
47 | Wrong answer | 17ms | 2896 KiB | ||||
subtask5 | 0/15 | ||||||
48 | Wrong answer | 32ms | 3024 KiB | ||||
49 | Runtime error | 17ms | 3388 KiB | ||||
50 | Wrong answer | 239ms | 3108 KiB | ||||
51 | Runtime error | 16ms | 3084 KiB | ||||
52 | Runtime error | 17ms | 3128 KiB | ||||
53 | Runtime error | 16ms | 2964 KiB | ||||
54 | Wrong answer | 32ms | 3128 KiB | ||||
55 | Wrong answer | 43ms | 3132 KiB | ||||
56 | Wrong answer | 221ms | 2972 KiB | ||||
57 | Runtime error | 16ms | 3128 KiB | ||||
58 | Runtime error | 14ms | 3128 KiB | ||||
59 | Runtime error | 16ms | 3096 KiB | ||||
60 | Wrong answer | 32ms | 3148 KiB | ||||
61 | Wrong answer | 30ms | 3128 KiB | ||||
62 | Wrong answer | 32ms | 3136 KiB | ||||
63 | Wrong answer | 30ms | 3128 KiB | ||||
64 | Wrong answer | 232ms | 3112 KiB | ||||
65 | Wrong answer | 206ms | 3128 KiB | ||||
66 | Wrong answer | 207ms | 3100 KiB |