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
Inserted VE254 with key tuple 7 -10 6 Erased key 1 -1 0 Min of dim 2 is VE281 Key -2 5 -7 not found! Inserted VE200 with key tuple -2 3 -6 Min of dim 1 is VE254 Key 1 -2 0 not found when erasing! Erased key 7 -10 6 Key -1 8 9 not found when erasing! Key 6 -7 -2 not found when erasing! Min of dim 2 is VE281 Inserted VE525 with key tuple -9 -4 4 Key 5 3 2 not found when erasing! Min of dim 2 is VE370 Inserted VE514 with key tuple -2 4 8 Key -10 0 -9 not found when erasing! Min of dim 1 is VE525 Inserted VE163 with key tuple -6 -2 6 Erased key -9 -4 4 Inserted VE178 with key tuple -10 5 -4 Inserted VE104 with key tuple 3 0 -2 Erased key -10 5 -4 Key 0 2 10 not found! Key 0 -2 4 not found! Inserted VE222 with key tuple 3 -10 6 Key 5 5 -10 not found! Key -4 -6 -6 not found when erasing! Value found: VE514 with key -2 4 8 Value found: VE370 with key 0 0 0 Max of dim 1 is VE514 Erased key -2 4 8 Erased key 0 0 0 Key -4 -10 -10 not found! Key 10 -2 -7 not found! Inserted VE251 with key tuple 10 2 6 Erased key -2 3 -6
JOJ Answer
Inserted VE254 with key tuple 7 -10 6 Erased key 1 -1 0 Min of dim 2 is VE281 Key -2 5 -7 not found! Inserted VE200 with key tuple -2 3 -6 Min of dim 1 is VE254 Key 1 -2 0 not found when erasing! Erased key 7 -10 6 Key -1 8 9 not found when erasing! Key 6 -7 -2 not found when erasing! Min of dim 2 is VE200 Inserted VE525 with key tuple -9 -4 4 Key 5 3 2 not found when erasing! Min of dim 2 is VE200 Inserted VE514 with key tuple -2 4 8 Key -10 0 -9 not found when erasing! Min of dim 1 is VE525 Inserted VE163 with key tuple -6 -2 6 Erased key -9 -4 4 Inserted VE178 with key tuple -10 5 -4 Inserted VE104 with key tuple 3 0 -2 Erased key -10 5 -4 Key 0 2 10 not found! Key 0 -2 4 not found! Inserted VE222 with key tuple 3 -10 6 Key 5 5 -10 not found! Key -4 -6 -6 not found when erasing! Value found: VE514 with key -2 4 8 Value found: VE370 with key 0 0 0 Max of dim 1 is VE514 Erased key -2 4 8 Erased key 0 0 0 Key -4 -10 -10 not found! Key 10 -2 -7 not found! Inserted VE251 with k