Hotel visits heap

getting cases wrong while its showing correct output on giving custom input

@guptashubham210a initialize these variables of type long long as well
ll q,x,y,k,d;

@mayankA47
but they are within range na so why to use ll for them and int gets typecaste to ll automatically na?

@guptashubham210a problem occurs when they are multiplied!

NO

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.