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 6987 13975 27951 27952 13976 27953 27954 nullptr nullptr nullptr nullptr nullptr nullptr nullptr nullptr nullptr nullptr nullptr nullptr nullptr nullptr nullptr nullptr nullptr nullptr nullptr nullptr nullptr nullptr nullptr nullptr nullptr nullptr 21881 43763 nullptr nullptr 43764 nullptr nullptr nullptr 10940 21881 43763 43764 21882 nullptr 43766 5470 10941 21883 21884 nullptr nullptr nullptr nullptr 52342 nullptr nullptr nullptr 26171 52343 nullptr nullptr 52344 nullptr nullptr 13085 26171 52343 52344 26172 52345 52346 nullptr nullptr nullptr nullptr 43292 nullptr nullptr nullptr 10239 nullptr nullptr nullptr nullptr nullptr nullptr nullptr nullptr 3431 nullptr 6864 13729 nullptr nullptr 80819 nullptr nullptr nullptr nullptr nullptr nullptr nullptr nullptr nullptr nullptr nullptr nullptr nullptr nullptr nullptr nullptr nullptr