C++ Practice Problem – Calculating the Number of Intersection Points of Lines

C++ Practice Problem - Calculating the Number of Intersection Points of Lines

Time Limit: 2s Memory Limit: 192MB Problem Description There are n lines on a plane, and no three lines intersect at a single point. How many different intersection points can these lines have? For example, if n=2, the possible number of intersection points is 0 (parallel) or 1 (not parallel). Input Format The input consists … Read more