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 Memory 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
1 99488 is not present. 2 780401 not found. 3 Accessed (-401129, 0); Updated to (-401129, -787703). 4 18702 not found. 5 Accessed (912859, 0); Updated to (912859, -571076). 6 626695 not found. 7 835165 not found. 8 Inserted (-639013, 306645). Rehashed table from 5 to 11. 9 Accessed (785029, 0); Updated to (785029, -699808). 10 -911320 not found. 11 494141 not found. 12 465939 is not present. 13 -118548 is not present. 14 539404 not found. 15 Inserted (352098, -837139). 16 330352 is not present. 17 -82520 is not present. 18 Accessed (-601448, 0); Updated to (-601448, -22462). Rehashed table from 11 to 23. 19 263921 not found. 20 -145808 not found. 21 853321 is not present. 22 912069 not found. 23 -497824 not found. 24 Inserted (912186, 201600). 25 286235 is not present. 26 -151242 not found. 27 208900 is not present. 28 893289 not found. 29 Inserted (-964370, -920046). 30 Inserted (196658, 785395). 31 -405084 not found. 32 Inserted (-100938, 45620). 33 -362883 not found. 34 466833 is not present. 35 -476286 is
JOJ Answer
1 99488 is not present. 2 780401 not found. 3 Accessed (-401129, 0); Updated to (-401129, -787703). 4 18702 not found. 5 Accessed (912859, 0); Updated to (912859, -571076). 6 626695 not found. 7 835165 not found. 8 Inserted (-639013, 306645). Rehashed table from 5 to 11. 9 Accessed (785029, 0); Updated to (785029, -699808). 10 -911320 not found. 11 494141 not found. 12 465939 is not present. 13 -118548 is not present. 14 539404 not found. 15 Inserted (352098, -837139). 16 330352 is not present. 17 -82520 is not present. 18 Accessed (-601448, 0); Updated to (-601448, -22462). Rehashed table from 11 to 23. 19 263921 not found. 20 -145808 not found. 21 853321 is not present. 22 912069 not found. 23 -497824 not found. 24 Inserted (912186, 201600). 25 286235 is not present. 26 -151242 not found. 27 208900 is not present. 28 893289 not found. 29 Inserted (-964370, -920046). 30 Inserted (196658, 785395). 31 -405084 not found. 32 Inserted (-100938, 45620). 33 -362883 not found. 34 466833 is not present. 35 -476286 is