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

19508번 - Convex Hull 스페셜 저지다국어

시간 제한메모리 제한제출정답맞힌 사람정답 비율
1.5 초 256 MB27043127.059%

문제

There are $n$ points in three-dimensional space. Consider the convex hull of these $n$ points.

You are given $q$ queries. Each query defines a plane in three-dimensional space. For each given plane, find the area of section of the convex hull produced by this plane.

입력

The first line of input contains two integers $n$ and $q,ドル the number of points and the number of queries (1ドル \le n, q \le 1000$).

Each of the next $n$ lines contains three integers $x,ドル $y$ and $z$: the coordinates of one of the points.

The next $q$ lines describe queries. Each of them contains four integers $a,ドル $b,ドル $c$ and $d$ which specify the plane given by the equation $a x + b y + c z + d = 0$.

It is guaranteed that the absolute values of $x,ドル $y,ドル $z,ドル $a,ドル $b,ドル $c$ and $d$ are not greater than 2000ドル$.

출력

For each query, print the answer with absolute error at most 10ドル^{-3}$.

제한

예제 입력 1

6 1
0 0 1
1 0 1
0 1 1
0 0 -1
1 0 -1
0 1 -1
0 0 1 0

예제 출력 1

0.500

힌트

출처

Camp > Petrozavodsk Programming Camp > Summer 2016 > Day 8: DPRK Contest C번

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

출처

대학교 대회

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

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