ak1389's blog

By ak1389, history, 6 weeks ago, In English

I have been provided N pairs of numbers where each pair (Ai,Bi) represents a line y=Ai*x+Bi . I want to find out the total number of triangles which can be constructed using these lines and HOW MANY TRIANGLES IS EACH LINE A PART OF.

I found the first part of the problem on a post on another platform, but am clueless as far as the second part is concerned. Any help'd be appreciated.

Thanks

 
 
 
 
  • Vote: I like it
  • -12
  • Vote: I do not like it