Notes
This function is in beta test. Please help improve it in the issues
here.
Hints
Your answer may be identical to the JOJ answer in the first several lines.
However, the main problem you meet now is Time Exceeded. And the exit code of your program is -9, which should be 0.
Please double check your code to solve this problem and try again.
Your Answer
JOJ Answer
nullptr nullptr 11 23 47 48 nullptr 5 11 23 nullptr nullptr 6 13 27 nullptr 14 nullptr 30 nullptr nullptr nullptr nullptr 5 11 23 nullptr nullptr 6 13 27 nullptr 14 nullptr 30 nullptr nullptr nullptr 11 23 47 48 nullptr 5 11 23 nullptr nullptr 6 13 27 nullptr 14 nullptr 30 nullptr nullptr nullptr 14 nullptr 30 61 nullptr 5 11 23 nullptr nullptr 3 7 nullptr 16 8 17 18 nullptr nullptr nullptr nullptr 5 11 23 nullptr nullptr 6 13 27 nullptr 14 nullptr 30 nullptr nullptr nullptr 14 nullptr 30 61 nullptr 5 11 23 nullptr nullptr 3 7 nullptr 16 8 17 18 nullptr nullptr nullptr 11 23 47 48 nullptr 5 11 23 nullptr nullptr 6 13 27 nullptr 14 nullptr 30 nullptr nullptr nullptr 11 23 47 48 nullptr 5 11 23 nullptr nullptr 6 13 27 nullptr 14 nullptr 30 nullptr nullptr nullptr 11 23 47 48 nullptr 5 11 23 nullptr nullptr 6 13 27 nullptr 14 nullptr 30 nullptr nullptr nullptr 11 23 47 48 nullptr 5 11 23 nullptr nullptr 6 13 27 nullptr 14 nullptr 30 nullptr