| Contests - ACM Student Chapter - PSUT |
|---|
| Private |
| Spectator |
| PSUT Marathon 2025 |
|---|
| Finished |
This contest uses time limits scaling policy (depending on a programming language). The system automatically adjusts time limits by the following multipliers for some languages. Despite scaling (adjustment), the time limit cannot be more than 30 seconds. Read the details by the link.
During a brief break from racing, Mario is making $$$n$$$ delicious tuna sandwiches.
Each sandwich requires exactly two slices of cheese. There are two types of cheese available: Mushroom Cheese and Star Cheese.
Mario follows a specific, repeating pattern for the cheese slices in his sandwiches:
Mario Kart Sandwich. Mario wants to make $$$n$$$ sandwiches, determine the total number of Mushroom Cheese slices and the total number of Star Cheese slices he will need.
The first line contains a single integer $$$t$$$ ($$$1 \le t \le 10^4$$$) — the number of test cases.
The only line of each test case contain a single integer $$$n$$$ ($$$3 \le n \le 10^9$$$) — representing the total number of sandwiches.
Output $$$t$$$ lines each line contain two space-separated integers: the total number of Mushroom Cheese slices followed by the total number of Star Cheese slices required.
238
3 3 9 7
| Name |
|---|

