Comments
On JATCCodeforces Round #520, 7 years ago
+3

Probably something like 93184 which is 1024*7*13. You may be having overflow issues.

Consider all the integer points on the three lines. The answer to the problem is "The number of ways to make a triangle from them equals number of ways to select 3 points minus the number of ways the selected 3 points lie on the same line".

The contest was fun..... Thanks for such a great contest!!!!!

Really Cool Project!!!

Can you explain your solution a bit more?