Logo
(追記) (追記ここまで)

19494번 - Triangles 다국어

시간 제한메모리 제한제출정답맞힌 사람정답 비율
10 초 256 MB32171555.556%

문제

$n$ points are given on a plane. We are interested in the number of right-angled triangles with vertices at these points and area contained in the range $[A,B]$.

입력

The first line contains three integers $n,ドル $A,ドル $B$ (1ドル\leq n\leq 2000,ドル 1ドル\leq A\leq B\leq 10^{18}$). The following $n$ lines describe the individual points. The $i$-th of these lines contains two integers $x_i,y_i$ ($-10^9\leq x_i,y_i\leq 10^9$) which are the coordinates of the $i$-th point. All the given points are distinct.

출력

The only line of the output should contain the number of triangles with vertices at the given points and area in the range $[A,B]$.

제한

예제 입력 1

7 5 25
0 0
2 0
0 2
10 0
0 10
3 3
3 -3

예제 출력 1

3

힌트

출처

Camp > Petrozavodsk Programming Camp > Summer 2016 > Day 6: Warsaw U Contest, XVI Open Cup Onsite J번

(追記) (追記ここまで)

출처

대학교 대회

  • 사업자 등록 번호: 541-88-00682
  • 대표자명: 최백준
  • 주소: 서울시 서초구 서초대로74길 29 서초파라곤 412호
  • 전화번호: 02-521-0487 (이메일로 연락 주세요)
  • 이메일: contacts@startlink.io
  • 통신판매신고번호: 제 2017-서울서초-2193 호

AltStyle によって変換されたページ (->オリジナル) /