Grand temple problem

the width and height are not provided int input what am i supposed to take??

Consider the area on 1st quadrant (starting from 0) going uptil last river on both axes!
so height and width are (max_x_coordinate,max_y_coordinate).

I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.

On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.