#P2433. 【深基1-2】小学数学 N 合一

【深基1-2】小学数学 N 合一

Description

Problem 1

Please output I love Luogu!.

Problem 2

There are 1010 apples. Xiao A took 22, Uim took 44, 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 1414 apples. They are to be evenly divided among 44 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 500500 milliliters of soda to be evenly divided among 33 students. How many milliliters does each student get? Please output one number. Keep 66 significant digits and do not use scientific notation.

Problem 5

Train A is 260260 meters long and travels at 12 m/s12 \text{ m/s}; Train B is 220220 meters long and travels at 20 m/s20 \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 cm6 \text{ cm} and 9 cm9 \text{ cm}, respectively. Find the length of its diagonal (in cm\text{cm}). Directly use cout to output.

Problem 7

Uim has 100100 yuan in a bank account. The following operations occur:

  1. Deposit 1010 yuan.
  2. Spend 2020 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=5r=5, output the circumference of the circle, the area of the circle, and the volume of the sphere. Take π=3.141593\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 88 judging machines, the programs in the queue can be finished in 3030 minutes; with 1010 judging machines, they can be finished in 66 minutes. How many judging machines are needed to finish exactly at 1010 minutes?

Problem 11

Xiao A runs at 5 m/s5 \text{ m/s}, and Xiao B runs at 8 m/s8 \text{ m/s}. Xiao B is 100 m100 \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 2626 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 1818-th letter?

Output one number and one letter, separated by a newline.

Problem 13

Xiao A has two spherical lumps of clay, with radii 44 and 1010. 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 π=3.141593\pi = 3.141593.

Problem 14

According to Gugu Online School’s prediction, when the course is priced at 110110 yuan, 1010 people will enroll. If the price decreases by 11 yuan, there will be 11 more enrollment (and vice versa). If we want the total tuition received to be 35003500 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.

2
6 4

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:

#include<iostream>
// 填上你觉得需要的其他头文件
using namespace std;
int main() {
    int T;
    cin >> T;
    if (T == 1) {
        // 粘贴问题 1 的主函数代码,除了 return 0
        cout << "I love Luogu!";
    } else if (T == 2) {
        // 粘贴问题 2 的主函数代码,除了 return 0
        cout << 2 + 4 << " " << 10 - 2 - 4;
    } else if (T == 3) {
        // 请自行完成问题 3 的代码
    } else if (T == 4) {
        // 请自行完成问题 4 的代码
    } else if (T == 5) {
        // 请自行完成问题 5 的代码
    } else if (T == 6) {
        // 请自行完成问题 6 的代码
    } else if (T == 7) {
        // 请自行完成问题 7 的代码
    } else if (T == 8) {
        // 请自行完成问题 8 的代码
    } else if (T == 9) {
        // 请自行完成问题 9 的代码
    } else if (T == 10) {
        // 请自行完成问题 10 的代码
    } else if (T == 11) {
        // 请自行完成问题 11 的代码
    } else if (T == 12) {
        // 请自行完成问题 12 的代码
    } else if (T == 13) {
        // 请自行完成问题 13 的代码
    } else if (T == 14) {
        // 请自行完成问题 14 的代码
    }
    return 0;
}

Translated by ChatGPT 5