#P8789. [蓝桥杯 2022 国 B] 填空问题
[蓝桥杯 2022 国 B] 填空问题
Problem Description
Task A: 2022
Problem Description
Split into the sum of distinct positive integers. How many different ways are there?
Note that different orders are considered the same method. For example, and are considered the same method.
Answer Submission
This is a fill-in-the-blank problem. You only need to compute the result and submit it. The result of this problem is an integer. When submitting the answer, only fill in this integer. Any extra content will not be scored.
Task B: Clock
Problem Description
On a -hour clock, there are a minute hand, an hour hand, and a second hand to show the time. Let the angle (in degrees) between the minute hand and the hour hand be , and the angle (in degrees) between the minute hand and the second hand be . At exactly hours minutes seconds, the condition holds, and ; ; . Find the values of .
Note that the hour hand, minute hand, and second hand all rotate around the center at a constant speed.
The submission format is three integers separated by one space, representing . For example, 3 11 58 means o'clock minutes seconds.
Answer Submission
This is a fill-in-the-blank problem. You only need to compute the result and submit it. The result of this problem is three integers separated by one space. When submitting the answer, only fill in three integers separated by one space. Any extra content will not be scored.
Input Format
The input consists of one uppercase letter, indicating which task it is.
Output Format
According to the input task label, output the answer to the corresponding task.
Hint
Answer template for reference.
#include<iostream>
using namespace std;
int main() {
string ans [] = {
"The answer of task A", // Replace the content in double quotes with the answer for task A.
"The answer of task B", // Replace the content in double quotes with the answer for task B.
};
char T;
cin >> T;
cout << ans[T - 'A'] << endl;
return 0;
}
Translated by ChatGPT 5