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 VE596 with key tuple -6 -9 4 Key 10 6 3 not found! Inserted VE544 with key tuple -9 6 2 Inserted VE114 with key tuple 8 -8 -6 Key 5 6 -6 not found! Max of dim 2 is VE596 Max of dim 1 is VE544 Inserted VE544 with key tuple -6 3 -3 Max of dim 1 is VE544 Inserted VE537 with key tuple -9 6 -4 Max of dim 2 is VE596 Erased key -9 6 -4 Key 9 9 -6 not found when erasing! Min of dim 1 is VE596 Min of dim 0 is VE537 Max of dim 1 is VE544 Max of dim 0 is VE114 Inserted VE140 with key tuple 2 0 1 Inserted VE160 with key tuple 4 0 -9 Max of dim 1 is VE544 Max of dim 2 is VE596 Erased key 0 0 0 Key 6 -4 -7 not found when erasing! Inserted VE196 with key tuple -4 7 -7 Inserted VE222 with key tuple -1 -2 -1 Inserted VE591 with key tuple -1 1 7 Erased key -9 6 2 Key 6 5 -5 not found when erasing! Min of dim 2 is VE160 Inserted VE563 with key tuple -9 -1 -8 Key -8 4 7 not found when erasing! Inserted VE528 with key tuple -2 4 -7 Min of dim 2 is VE160 Key 0 4 -10 not found! Max of dim 1 is VE528 Inserted VE372 with key
JOJ Answer
Inserted VE596 with key tuple -6 -9 4 Key 10 6 3 not found! Inserted VE544 with key tuple -9 6 2 Inserted VE114 with key tuple 8 -8 -6 Key 5 6 -6 not found! Max of dim 2 is VE596 Max of dim 1 is VE544 Inserted VE544 with key tuple -6 3 -3 Max of dim 1 is VE544 Inserted VE537 with key tuple -9 6 -4 Max of dim 2 is VE596 Erased key -9 6 -4 Key 9 9 -6 not found when erasing! Min of dim 1 is VE596 Min of dim 0 is VE544 Max of dim 1 is VE544 Max of dim 0 is VE114 Inserted VE140 with key tuple 2 0 1 Inserted VE160 with key tuple 4 0 -9 Max of dim 1 is VE544 Max of dim 2 is VE596 Erased key 0 0 0 Key 6 -4 -7 not found when erasing! Inserted VE196 with key tuple -4 7 -7 Inserted VE222 with key tuple -1 -2 -1 Inserted VE591 with key tuple -1 1 7 Erased key -9 6 2 Key 6 5 -5 not found when erasing! Min of dim 2 is VE160 Inserted VE563 with key tuple -9 -1 -8 Key -8 4 7 not found when erasing! Inserted VE528 with key tuple -2 4 -7 Min of dim 2 is VE160 Key 0 4 -10 not found! Max of dim