#P5646. ygg的题库
ygg的题库
Description
ygg decides to use his power to forcibly reset his problem set. However, the problem set that ygg built by hand is not easy to deal with. When this intelligent, self-aware system realizes it is about to be reset, it quickly changes the administrator password to stop the reset.
ygg finds this intelligent agent and locks it up immediately, but the administrator password has already been changed. ygg is very troubled, because his power cannot help him crack the password.
After studying the agent, ygg discovers that the agent's mind stores a floating-point array of length . It claims that if you take every number in , round it to exactly five digits after the decimal point, and then join them with spaces, you will get the password. But the agent refuses to reveal what actually is.
ygg continues his research and finds that the agent will consider a number to be beautiful if and only if
So ygg gives the agent numbers and asks whether each is beautiful. ygg hopes to use these data to recover the array , and thus retrieve the password.
Since the answer is not unique, you only need to output any valid solution. See the notes/hints for details.
Input Format
The first line contains two integers and .
The next lines each contain a floating-point number and a boolean value (0/1), indicating whether the agent thinks is beautiful.
Output Format
Output one line with floating-point numbers, representing the array (rounded in the way described in the statement: keep five digits after the decimal point, and join with spaces).
The answer is not unique, but you must ensure that the absolute value of each number in is within .
5 5
-2.6 0
-1.8 0
0.6 1
0 0
1 1
-1.90000 2.60000 0.80000 1.70000 0.66600
4 10
4995.35 1
-341.076 0
2658.4 1
-1624.69 0
2856.53 1
3746.43 1
3454.28 1
1560.6 1
3785.31 1
-580.728 0
670.15800 4361.39000 3761.88000 4575.00000
Hint
, , , .
Since there may be multiple solutions, this problem uses a to verify the answer. If the you output satisfies all input conditions, or the number of errors is less than or equal to 5, you will get full score. Otherwise, you will get a score of $\text{total points of this test}\cdot\frac{\text{number of correct answers}}{\text{total number of answers}}$ for that test.
The testdata satisfy the following Constraints:
| Test Point ID | ||
|---|---|---|
Translated by ChatGPT 5
京公网安备 11011102002149号