시간 제한 | 메모리 제한 | 제출 | 정답 | 맞힌 사람 | 정답 비율 |
---|---|---|---|---|---|
2 초 (추가 시간 없음) | 256 MB | 31 | 15 | 14 | 63.636% |
You are given $n$ points on a plane. The i-th of them is activated with probability $p_i$, provided as part of the input. Find the expected circumference of the convex hull of all activated points.
The first line contains the number of points $n$ and the number $p^∗$. All points are activated with the probability $p_i = p^∗$, except for the first three, which are always activated ($p_1 = p_2 = p_3 = 1$); this way, the definition of the convex hull circumference is always sound. This is followed by $n$ lines, each containing space-separated coordinates of the $i$-th point, $x_i$, $y_i$.
Print out a single number — the expected circumference of the convex hull. Your result should differ by less than $0.001$ from the reference solution to be considered correct.
4 0.281250 6 6 5 8 8 3 7 10
12.816849
5 0.561523 2 11 7 8 13 10 9 9 13 3
27.943471
ICPC > Regionals > Europe > Central European Regional Contest > CERC 2021 Y번