| UTPC Contest 12-01-23 Div. 2 (Beginner) |
|---|
| Закончено |
Janise is baking a honey baklava with $$$N$$$ layers. She knows that if she reverses $$$N$$$, she will get a number divisible by $$$5$$$. Janise wants to know how many possible baklavas with $$$9$$$-digit $$$N$$$ satisfy this property that have a layer count $$$N$$$ that is divisible by $$$K$$$. Can you help her calculate this?
The first line contains $$$T$$$ ($$$1 \leq T \leq 10^5$$$), the number of test cases. The next $$$T$$$ lines each contain a single integer $$$K$$$ ($$$1 \leq K \leq 10^5$$$).
For each of the $$$T$$$ test cases, output the total number of possible baklavas Janise could bake on a new line.
5 1 2 3 4 5
100000000 50000000 33333333 25000000 20000000
| Название |
|---|


