P2433 【深基1-2】Elementary Math N-in-One
Description
### Problem 1
Please output `I love Luogu!`.
### Problem 2
There are $10$ apples. Xiao A took $2$, Uim took $4$, and Xiao B took all the remaining apples. We want to know:
1. How many apples did Xiao A and Uim take in total?
2. How many apples did Xiao B take?
Now you need to write a program to output two numbers as the answers, separated by a space.
### Problem 3
There are $14$ apples. They are to be evenly divided among $4$ students, and any leftover apples are put back into the refrigerator. Please answer:
1. How many apples does each student get?
2. How many apples are distributed in total?
3. How many apples are put back into the refrigerator?
Now you need to write a program to output three numbers as the answers, one per line.
### Problem 4
There are $500$ milliliters of soda to be evenly divided among $3$ students. How many milliliters does each student get? Please output one number. Keep $6$ significant digits and do not use scientific notation.
### Problem 5
Train A is $260$ meters long and travels at $12 \text{ m/s}$; Train B is $220$ meters long and travels at $20 \text{ m/s}$. The two trains move toward each other. Starting from the moment their fronts meet, how long will it take until their tails separate? The answer is known to be an integer.
### Problem 6
A rectangle has length and width $6 \text{ cm}$ and $9 \text{ cm}$, respectively. Find the length of its diagonal (in $\text{cm}$). Directly use `cout` to output.
### Problem 7
Uim has $100$ yuan in a bank account. The following operations occur:
1. Deposit $10$ yuan.
2. Spend $20$ yuan on shopping.
3. Withdraw all the remaining money.
After each operation, output the account balance, separated by newline characters.
### Problem 8
When the radius is $r=5$, output the circumference of the circle, the area of the circle, and the volume of the sphere. Take $\pi=3.141593$. Directly use `cout` to output the answers, one number per line.
### Problem 9
A little monkey bought some peaches. On the first day, it ate exactly half of the peaches and then greedily ate one more. On the second day, it ate half of the remaining peaches and then one more. On the third day, it again ate half of the remaining peaches and one more. On the fourth day, it found that only one peach was left. How many peaches did the monkey initially buy?
### Problem 10
Luogu’s judging tasks increase uniformly over time. With $8$ judging machines, the programs in the queue can be finished in $30$ minutes; with $10$ judging machines, they can be finished in $6$ minutes. How many judging machines are needed to finish exactly at $10$ minutes?
### Problem 11
Xiao A runs at $5 \text{ m/s}$, and Xiao B runs at $8 \text{ m/s}$. Xiao B is $100 \text{ m}$ behind Xiao A. They start at the same time. How long will it take for Xiao B to catch up with Xiao A? Output one number as the answer and directly use `cout` to output.
### Problem 12
Everyone knows there are $26$ English letters, and A is the first letter. Now write a program to find:
1. Which position is M in the alphabet?
2. What is the $18$-th letter?
Output one number and one letter, separated by a newline.
### Problem 13
Xiao A has two spherical lumps of clay, with radii $4$ and $10$. He wants to knead them together and then mold them into a cube. What is the edge length of the cube? If the result is not an integer, discard the digits after the decimal point. Take $\pi = 3.141593$.
### Problem 14
According to Gugu Online School’s prediction, when the course is priced at $110$ yuan, $10$ people will enroll. If the price decreases by $1$ yuan, there will be $1$ more enrollment (and vice versa). If we want the total tuition received to be $3500$ yuan, what should the price be? It is known that there are two answers that meet the requirement; take the smaller one. If this answer is not an integer, round it to the nearest integer.
Input Format
Input a positive integer indicating which problem.
Output Format
Output the answer corresponding to the input problem number.
Explanation/Hint
Please solve the following elementary math problems. You can submit the answers directly, or write a program.
For this problem, if you do not know how to handle input, you can copy it like this:
```cpp
#include
// 填上你觉得需要的其他头文件
using namespace std;
int main() {
int T;
cin >> T;
if (T == 1) {
// 粘贴问题 1 的主函数代码,除了 return 0
cout