Record Case Detail

Notes

This function is in beta test. Please help improve it in the issues here.

Stderr

terminate called after throwing an instance of 'std::bad_alloc'
  what():  std::bad_alloc

Hints

Your answer may be identical to the JOJ answer in the first several lines.

However, the main problem you meet now is Runtime Error. And the exit code of your program is -6, which should be 0.

Please double check your code to solve this problem and try again.

Your Answer


        

JOJ Answer

Inserted VE279 with key tuple 4 2 6
Min of dim 2 is VE281
Inserted VE474 with key tuple -1 -1 4
Key -9 -9 5 not found when erasing!
Min of dim 1 is VE474
Inserted VE476 with key tuple 5 2 5
Min of dim 2 is VE281
Value found: VE279 with key 4 2 6
Inserted VE177 with key tuple -5 -3 -2
Inserted VE230 with key tuple -1 -10 -4
Inserted VE117 with key tuple 0 5 5
Inserted VE491 with key tuple -3 7 5
Inserted VE369 with key tuple 3 6 -6
Inserted VE180 with key tuple 10 4 -1
Inserted VE281 with key tuple -10 0 -10
Min of dim 2 is VE281
Value found: VE474 with key -1 -1 4
Inserted VE298 with key tuple -1 -1 4
Inserted VE227 with key tuple 9 -10 -6
Inserted VE544 with key tuple 9 9 -1
Key 4 -4 2 not found when erasing!
Min of dim 1 is VE230
Erased key 0 0 0
Inserted VE408 with key tuple 9 8 -2
Inserted VE358 with key tuple 1 5 -3
Max of dim 1 is VE544
Min of dim 1 is VE230
Inserted VE102 with key tuple -4 7 -5
Max of dim 2 is VE279
Min of dim 1 is VE230
Inserted VE182 with key tuple 9 -9