Pesley has randomly generated two hidden permutations
Constraints
For this problem, you will NOT be required to pass ANY of the samples in order to receive points.
For all subtasks:
Subtask 1 [15%]
Subtask 2 [17%]
Subtask 3 [68%]
No additional constraints.
Interaction
The first line contains the integer
You will then begin making guesses. For each guess, output two space-separated integers \n
character. \n
character), representing the values in the first and second permutations at indices
If at any point you attempt an invalid operation (such as an invalid output format, failure to provide any output, or index out of bounds), -1
will be outputted (followed by a \n
character). When this happens, you should terminate your program to avoid reading from a closed input stream, and you will receive a verdict of Wrong Answer (Presentation Error)
. Otherwise, the verdict may be undefined.
Please note that you may need to flush stdout
after each operation. In C++, this can be done with fflush(stdout)
or cout << flush
(depending on whether you use printf
or cout
). In Java, this can be done with System.out.flush()
. In Python, you can use sys.stdout.flush()
.
Sample Interaction
>>>
denotes your output. Do not print this out.
4
>>> 1 2
3 4
>>> 4 3
4 2
>>> 3 1
1 1
Sample Explanation
In this example,
Comments