Regarding a hackerblock problem

https://hack.codingblocks.com/app/practice/1/1272/problem
can I get a code for this problem

hello @sraj39273

I dont have code , but for this problem u just have to line from all restaurants to ur location
and number of distinct lines will be ur answer.

u can take help of slope count all distinct lines passing thorugh the given location