#P12336. 第三心脏
第三心脏
Background
Problem Description
mikage likes construction problems. One day, she came up with a simple construction problem:
Given , try to construct a quadruple of positive integers such that:
- .
- .
If there is no solution, output . Here, denotes bitwise XOR in binary.
Input Format
One line containing one integer .
Output Format
If there is a solution, output three integers in one line separated by spaces. If there is no solution, output .
31
172 484 632
Hint
Sample Explanation
As stated in the problem.
Constraints
This problem uses bundled subtasks. You can get the score of a subtask only if you pass all testdata points in that subtask.
| Subtask | Range of | Special Property | Score |
|---|---|---|---|
| 0 | None | 5 | |
| 1 | |||
| 2 | A | 10 | |
| 3 | B | ||
| 4 | C | 20 | |
| 5 | D | 10 | |
| 6 | None | 40 |
For all data, .
Special Property A: There exists an integer such that .
Special Property B: .
Special Property C: .
Special Property D: There exists an integer such that .
Translated by ChatGPT 5