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 VE390 with key tuple -8 3 3 Inserted VE377 with key tuple -2 10 -6 Inserted VE380 with key tuple 3 -2 4 Max of dim 2 is VE380 Inserted VE533 with key tuple -3 5 -7 Inserted VE201 with key tuple -5 4 5 Inserted VE383 with key tuple -8 -4 3 Key 0 4 8 not found when erasing! Inserted VE525 with key tuple -2 0 8 Value found: VE380 with key 3 -2 4 Inserted VE162 with key tuple 9 0 -5 Value found: VE162 with key 9 0 -5 Inserted VE219 with key tuple 4 4 1 Min of dim 1 is VE383 Inserted VE598 with key tuple -10 5 9 Min of dim 0 is VE598 Inserted VE390 with key tuple -9 -7 7 Max of dim 2 is VE598 Inserted VE464 with key tuple -5 10 7 Value found: VE482 with key 1 -1 0 Inserted VE508 with key tuple -3 -3 -7 Max of dim 0 is VE162 Inserted VE382 with key tuple 6 2 -8 Max of dim 0 is VE162 Value found: VE219 with key 4 4 1 Key 2 -7 9 not found when erasing! Max of dim 1 is VE377 Min of dim 1 is VE390 Inserted VE182 with key tuple 8 -3 -2 Key -1 -10 -8 not found! Min of dim 0 is VE598 Inserted VE349 with key tuple
JOJ Answer
Inserted VE390 with key tuple -8 3 3 Inserted VE377 with key tuple -2 10 -6 Inserted VE380 with key tuple 3 -2 4 Max of dim 2 is VE380 Inserted VE533 with key tuple -3 5 -7 Inserted VE201 with key tuple -5 4 5 Inserted VE383 with key tuple -8 -4 3 Key 0 4 8 not found when erasing! Inserted VE525 with key tuple -2 0 8 Value found: VE380 with key 3 -2 4 Inserted VE162 with key tuple 9 0 -5 Value found: VE162 with key 9 0 -5 Inserted VE219 with key tuple 4 4 1 Min of dim 1 is VE383 Inserted VE598 with key tuple -10 5 9 Min of dim 0 is VE598 Inserted VE390 with key tuple -9 -7 7 Max of dim 2 is VE598 Inserted VE464 with key tuple -5 10 7 Value found: VE482 with key 1 -1 0 Inserted VE508 with key tuple -3 -3 -7 Max of dim 0 is VE162 Inserted VE382 with key tuple 6 2 -8 Max of dim 0 is VE162 Value found: VE219 with key 4 4 1 Key 2 -7 9 not found when erasing! Max of dim 1 is VE377 Min of dim 1 is VE390 Inserted VE182 with key tuple 8 -3 -2 Key -1 -10 -8 not found! Min of dim 0 is VE598