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 VE504 with key tuple -4 -3 -2 Key -2 -1 -6 not found when erasing! Key 1 5 -4 not found when erasing! Inserted VE378 with key tuple -9 -1 -5 Key 9 6 -2 not found when erasing! Inserted VE499 with key tuple 3 -6 -9 Key 2 3 6 not found! Max of dim 0 is VE499 Key 3 5 8 not found! Max of dim 2 is VE482 Inserted VE373 with key tuple 0 0 0 Inserted VE419 with key tuple 6 -9 1 Key -1 7 7 not found! Max of dim 2 is VE419 Key -4 -3 -9 not found! Min of dim 1 is VE419 Key 2 3 -10 not found! Key -1 -6 -5 not found! Inserted VE505 with key tuple -5 2 7 Traversing the tree after assignment operator: VE378 VE504 VE281 VE505 VE373 VE499 VE419 VE482 Key 3 -10 3 not found when erasing! Traversing the tree after assignment operator: VE378 VE504 VE281 VE505 VE373 VE499 VE419 VE482 Min of dim 0 is VE378 Inserted VE382 with key tuple 8 2 3 Inserted VE387 with key tuple 2 -3 4 Key 0 -7 -5 not found! Inserted VE586 with key tuple 8 3 8 Key 0 0 7 not found! Min of dim 2 is VE499 Key -5 -6 9 not found! Max of dim 2 is VE586
JOJ Answer
Inserted VE504 with key tuple -4 -3 -2 Key -2 -1 -6 not found when erasing! Key 1 5 -4 not found when erasing! Inserted VE378 with key tuple -9 -1 -5 Key 9 6 -2 not found when erasing! Inserted VE499 with key tuple 3 -6 -9 Key 2 3 6 not found! Max of dim 0 is VE499 Key 3 5 8 not found! Max of dim 2 is VE482 Inserted VE373 with key tuple 0 0 0 Inserted VE419 with key tuple 6 -9 1 Key -1 7 7 not found! Max of dim 2 is VE419 Key -4 -3 -9 not found! Min of dim 1 is VE419 Key 2 3 -10 not found! Key -1 -6 -5 not found! Inserted VE505 with key tuple -5 2 7 Traversing the tree after assignment operator: VE378 VE504 VE281 VE505 VE373 VE499 VE419 VE482 Key 3 -10 3 not found when erasing! Traversing the tree after assignment operator: VE378 VE504 VE281 VE505 VE373 VE499 VE419 VE482 Min of dim 0 is VE378 Inserted VE382 with key tuple 8 2 3 Inserted VE387 with key tuple 2 -3 4 Key 0 -7 -5 not found! Inserted VE586 with key tuple 8 3 8 Key 0 0 7 not found! Min of dim 2 is VE499 Key -5 -6 9 not found! Max of dim 2 is VE586