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 nullptr nullptr nullptr nullptr nullptr nullptr nullptr nullptr nullptr nullptr nullptr nullptr 13294 26589 53179 nullptr nullptr nullptr 6647 13295 26591 nullptr 13296 26593 26594 3323 6647 13295 13296 6648 13297 nullptr nullptr nullptr nullptr nullptr nullptr nullptr nullptr nullptr nullptr nullptr nullptr nullptr nullptr nullptr nullptr nullptr nullptr nullptr nullptr 1001 nullptr 2004 nullptr 4010 500 1001 nullptr 2004 1002 2005 2006 nullptr nullptr nullptr nullptr nullptr nullptr nullptr nullptr nullptr nullptr 11457 22915 45831 45832 22916 45833 nullptr nullptr 5728 11457 22915 22916 11458 nullptr 22918 nullptr nullptr nullptr nullptr nullptr nullptr nullptr nullptr 76282 nullptr nullptr nullptr nullptr nullptr nullptr nullptr nullptr 57206 nullptr nullptr nullptr nullptr