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
Selection sort:
JOJ Answer
Selection sort: 193 48 239 48 348 48 680 48 714 48 739 48 990 48 1348 48 1392 48 1682 48 1744 48 1937 48 1971 48 2036 48 2046 48 2282 48 2345 48 2503 48 2606 48 2723 48 2727 48 2793 48 2888 48 3011 48 3018 48 3321 48 3426 48 3649 48 3734 48 3797 48 3838 48 4386 48 4471 48 4601 48 4655 48 4691 48 4811 48 4895 48 4930 48 4971 48 4984 48 5077 48 5363 48 5409 48 5607 48 5627 48 5643 48 5992 48 6267 48 6457 48 6678 48 6821 48 6849 48 7119 48 7279 48 7343 48 7466 48 7473 48 7490 48 7504 48 7570 48 7638 48 7653 48 7698 48 7700 48 7766 48 7866 48 7878 48 7907 48 7999 48 8108 48 8359 48 8389 48 8783 48 8822 48 8832 48 8894 48 8993 48 9025 48 9047 48 9057 48 9536 48 9652 48 9699 48 9773 48 9879 48 10060 48 10110 48 10337 48 10349 48 10670 48 10809 48 10913 48 10978 48 11276 48 11384 48 11438 48 11710 48 11777 48 12247 48 12273 48 12783 48 12871 48 12890 48 13599 48 14358 48 14562 48 14879 48 14932 48 15067 48 15082 48 15265 48 15348 48 15413 48 15586 48 15655 48 15680 48 15797 48 15830 48 15850 48 15923 48 16038 48 162