INIT_QUADTREE(10)
CREATE_RECTANGLE(FULL,0,0,1024,1024)
CREATE_RECTANGLE(CENTER,257,257,767,767)
CREATE_RECTANGLE(1,0,0,512,512)
CREATE_RECTANGLE(A,0,512,512,1024)
CREATE_RECTANGLE(2,512,0,1024,512)
CREATE_RECTANGLE(B,512,512,1024,1024)
CREATE_RECTANGLE(B1,5,767,257,1019)
CREATE_RECTANGLE(21,767,5,1019,257)
CREATE_RECTANGLE(A1,5,5,257,257)
CREATE_RECTANGLE(11,767,767,1019,1019)
CREATE_RECTANGLE(1A,0,0,5,5)
CREATE_RECTANGLE(2A,1019,1019,1024,1024)
CREATE_RECTANGLE(AA,0,1019,5,1024)
CREATE_RECTANGLE(BA,1019,0,1024,5)
CREATE_RECTANGLE(A1A,5,257,257,767)
CREATE_RECTANGLE(A2A,257,5,767,257)
CREATE_RECTANGLE(AAA,767,257,1019,767)
CREATE_RECTANGLE(ABA,257,767,767,1019)
CREATE_RECTANGLE(BB1,0,5,5,1019)
CREATE_RECTANGLE(B11,5,0,1019,5)
CREATE_RECTANGLE(B21,1019,5,1024,1019)
CREATE_RECTANGLE(BA1,5,1019,1019,1024)
CREATE_RECTANGLE(INVALI,0,0,1025,1025)
LIST_RECTANGLES()
INSERT(FULL)
INSERT(1)
INSERT(A)
INSERT(2)
INSERT(B)
DELETE_RECTANGLE(FULL)
INSERT(1)
INSERT(A)
INSERT(2)
RECTANGLE_SEARCH(FULL)
RECTANGLE_SEARCH(1A)
RECTANGLE_SEARCH(2A)
RECTANGLE_SEARCH(A)
RECTANGLE_SEARCH(B)
INSERT(B)
RECTANGLE_SEARCH(FULL)
RECTANGLE_SEARCH(1A)
RECTANGLE_SEARCH(2A)
RECTANGLE_SEARCH(A)
RECTANGLE_SEARCH(B)
SEARCH_POINT(256,256)
DELETE_POINT(256,256)
RECTANGLE_SEARCH(FULL)
RECTANGLE_SEARCH(1A)
RECTANGLE_SEARCH(2A)
RECTANGLE_SEARCH(A)
RECTANGLE_SEARCH(B)
MOVE(2,128,128)
MOVE(2,256,256)
RECTANGLE_SEARCH(FULL)
RECTANGLE_SEARCH(1A)
RECTANGLE_SEARCH(2A)
RECTANGLE_SEARCH(A)
RECTANGLE_SEARCH(B)
INSERT(INVALI)
DISPLAY()
MOVE(2,768,256)
RECTANGLE_SEARCH(FULL)
RECTANGLE_SEARCH(1A)
RECTANGLE_SEARCH(2A)
RECTANGLE_SEARCH(A)
RECTANGLE_SEARCH(B)
INIT_QUADTREE(10)
INSERT(INVALI)
LIST_RECTANGLES()
INSERT(B1)
INSERT(21)
INSERT(A1)
INSERT(11)
INSERT(1A)
INSERT(2A)
INSERT(AA)
INSERT(BA)
INSERT(A1A)
INSERT(A2A)
INSERT(AAA)
INSERT(ABA)
INSERT(BB1)
INSERT(B11)
INSERT(B21)
INSERT(BA1)
SEARCH_POINT(256,256)
SEARCH_POINT(768,768)
RECTANGLE_SEARCH(1)
RECTANGLE_SEARCH(A)
RECTANGLE_SEARCH(2)
RECTANGLE_SEARCH(B)
RECTANGLE_SEARCH(FULL)
DELETE_POINT(256,256)
DELETE_POINT(768,768)
SEARCH_POINT(256,256)
SEARCH_POINT(768,768)
RECTANGLE_SEARCH(1)
RECTANGLE_SEARCH(A)
RECTANGLE_SEARCH(2)
RECTANGLE_SEARCH(B)
RECTANGLE_SEARCH(FULL)
INSERT(11)
SEARCH_POINT(256,256)
SEARCH_POINT(768,768)
RECTANGLE_SEARCH(1)
RECTANGLE_SEARCH(A)
RECTANGLE_SEARCH(2)
RECTANGLE_SEARCH(B)
RECTANGLE_SEARCH(FULL)
INSERT(CENTER)
SEARCH_POINT(256,256)
SEARCH_POINT(768,768)
RECTANGLE_SEARCH(1)
RECTANGLE_SEARCH(A)
RECTANGLE_SEARCH(2)
RECTANGLE_SEARCH(B)
RECTANGLE_SEARCH(FULL)
MOVE(11,131,131)
SEARCH_POINT(256,256)
SEARCH_POINT(768,768)
RECTANGLE_SEARCH(1)
RECTANGLE_SEARCH(A)
RECTANGLE_SEARCH(2)
RECTANGLE_SEARCH(B)
RECTANGLE_SEARCH(FULL)
