P2992 [USACO10OPEN] Triangle Counting G

题目描述

Bessie is standing guard duty after the big bad wolf was spotted stalking ```cpp cows over at Farmer Don's spread. Looking down from her guard tower in utter boredom, she's decided to perform intellectual exercises in ``` order to keep awake. After imagining the field as an X,Y grid, she recorded the coordinates of the N (1

输入格式

\* Line 1: A single integer: N \* Lines 2..N+1: Each line contains two integers, the coordinates of a single cow: X\_i and Y\_i

输出格式

\* Line 1: A single line with a single integer that is the count of the number of times a triangle formed by the cow locations contains the origin