Cloudberry Jam——云莓酱
You cannot submit for this problem because the contest is ended. You can click "Open in Problem Set" to view this problem in normal mode.
Statement
The most valuable berry of the Karelian forests is cloudberry. To make jam from cloudberries, you take equal amounts of berries and sugar and cook them. Thus, if you have kg of berries, you need kg of sugar. However, from kg of berries and kg of sugar, you will not get kg of jam, as one might expect, but only kg, since some of the jam evaporates during cooking. Specifically, during standard cooking, exactly a quarter (or ) of the jam evaporates.
How many kilograms of cloudberries are needed to prepare -kilogram jars of jam?

Input
Each test consists of several test cases. The first line contains a single integer () — the number of test cases. The following lines describe the test cases.
Each test case contains a single integer () — the number of jars of jam that need to be prepared.
Output
For each test case, output a single integer — the amount of berries needed for the jam in kilograms.
Samples
2
1
3
2
6
Note
For the test case , explanations are given in the text of the statement — to prepare jar of jam, you need kilograms of cloudberries.
Consider the test case : if we take kilograms of berries and kilograms of sugar, we get kilograms of jam; which gives jars of jam.
江苏理工学院集训队练习 JSUT Round.1 Div.4
- Status
- Done
- Rule
- ACM/ICPC
- Problem
- 6
- Start at
- 2025-11-27 19:00
- End at
- 2025-11-27 21:00
- Duration
- 2 hour(s)
- Host
- Partic.
- 0