#K64307. Taco Profit Calculation
Taco Profit Calculation
Taco Profit Calculation
You are working for Taco Corp, a company that sells innovative gadgets. Each gadget is sold for 100 coins. However, the company incurs fixed expense percentages on every sale. Specifically, the expenses include:
\(30\%\) for production,
\(10\%\) for marketing,
\(5\%\) for logistics.
The net profit from selling \(M\) gadgets is computed using the formula:
\[ \text{Profit} = M \times 100 - (0.30 + 0.10 + 0.05) \times (M \times 100) = 55 \times M \]
Your task is to write a program that reads multiple test cases from standard input and computes the profit for each test case.
inputFormat
The input is given through standard input (stdin) and is structured as follows:
- The first line contains an integer \(T\) indicating the number of test cases.
- The following \(T\) lines each contain one integer, \(M\), representing the number of gadgets sold in that test case.
outputFormat
For each test case, output the profit on a separate line to standard output (stdout). The profit is computed as \(55 \times M\).
## sample1
1
55