| Codeforces Round 1136 (Div. 2) |
|---|
| Finished |
Youmu Konpaku is dueling a youkai. The youkai has $$$x$$$ health, and Youmu's attack power is $$$1$$$.
In one move Youmu does one of the following:
The youkai is defeated once its health becomes $$$0$$$ or less. Find the minimum number of moves Youmu needs.
Each test contains multiple test cases. The first line contains the number of test cases $$$t$$$ ($$$1 \le t \le 100$$$). The description of the test cases follows.
Each of the next $$$t$$$ lines contains a single integer $$$x$$$ ($$$1\le x\le 10^4$$$) — the health of the youkai.
For each test case, output a single integer — the minimum number of moves.
612341010000
12347244
In the first test case, one attack is enough: it deals $$$1$$$ damage.
In the second test case, Youmu charges once (her attack power becomes $$$2$$$) and attacks once, so $$$2$$$ moves are enough. Note that attacking twice also takes $$$2$$$ moves.
In the fifth test case, Youmu charges $$$4$$$ times and attacks $$$3$$$ times: the attacks deal $$$5$$$, $$$4$$$, and $$$3$$$ damage, $$$12$$$ in total, so it takes $$$7$$$ moves. With $$$6$$$ moves she can deal at most $$$9$$$ damage, so the answer is $$$7$$$ .
| Name |
|---|


