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
Min of dim 2 is VE281 Inserted VE455 with key tuple -9 -1 -4 Erased key 1 -1 0 Min of dim 2 is VE455 Inserted VE530 with key tuple -2 5 -2 Value found: VE530 with key -2 5 -2 Inserted VE217 with key tuple 5 0 -5 Inserted VE436 with key tuple 4 5 -7 Inserted VE502 with key tuple 2 -9 2 Inserted VE145 with key tuple -1 10 -7 Value found: VE436 with key 4 5 -7 Min of dim 1 is VE502 Inserted VE298 with key tuple -1 10 -2 Inserted VE461 with key tuple -3 5 -6 Max of dim 0 is VE217 Inserted VE574 with key tuple 4 6 -8 Erased key -3 5 -6 Key -5 -9 4 not found! Max of dim 0 is VE217 Key 0 -9 0 not found! Inserted VE174 with key tuple -8 -9 -3 Inserted VE126 with key tuple 3 1 -2 Inserted VE500 with key tuple -1 6 0 Inserted VE222 with key tuple 9 3 4 Key -6 7 7 not found! Inserted VE592 with key tuple -9 3 -6 Inserted VE471 with key tuple 6 -5 -2 Inserted VE192 with key tuple 6 -9 -7 Erased key -1 10 -7 Inserted VE124 with key tuple 6 -7 4 Inserted VE283 with key tuple -3 -3 -3 Max of dim 2 is VE222 Inserted VE457 wi
JOJ Answer
Min of dim 2 is VE281 Inserted VE455 with key tuple -9 -1 -4 Erased key 1 -1 0 Min of dim 2 is VE455 Inserted VE530 with key tuple -2 5 -2 Value found: VE530 with key -2 5 -2 Inserted VE217 with key tuple 5 0 -5 Inserted VE436 with key tuple 4 5 -7 Inserted VE502 with key tuple 2 -9 2 Inserted VE145 with key tuple -1 10 -7 Value found: VE436 with key 4 5 -7 Min of dim 1 is VE502 Inserted VE298 with key tuple -1 10 -2 Inserted VE461 with key tuple -3 5 -6 Max of dim 0 is VE217 Inserted VE574 with key tuple 4 6 -8 Erased key -3 5 -6 Key -5 -9 4 not found! Max of dim 0 is VE217 Key 0 -9 0 not found! Inserted VE174 with key tuple -8 -9 -3 Inserted VE126 with key tuple 3 1 -2 Inserted VE500 with key tuple -1 6 0 Inserted VE222 with key tuple 9 3 4 Key -6 7 7 not found! Inserted VE592 with key tuple -9 3 -6 Inserted VE471 with key tuple 6 -5 -2 Inserted VE192 with key tuple 6 -9 -7 Erased key -1 10 -7 Inserted VE124 with key tuple 6 -7 4 Inserted VE283 with key tuple -3 -3 -3 Max of d