Huh? Can't hear you
InterviewTime limit2sMemory limit1024 MB
Count the unordered pairs of given points whose connecting line has slope K.
Problem
Hyunbin and Sooyeon live on a two-dimensional coordinate plane. Both use old phones, so their calls often drop. While moving around and talking, they found that the call does not drop when the slope of the line connecting their positions is .
Given coordinates where Hyunbin and Sooyeon may live, count the number of ways to place them so that the call does not drop.
Input
The first line contains and , separated by a space. (, )
The next lines contain the and coordinates of point , separated by a space. ()
No coordinate is given more than once, and all values in the input are integers.
Output
Print the number of ways to place Hyunbin and Sooyeon so that the call does not drop.