| 시간 제한 | 메모리 제한 | 제출 | 정답 | 맞힌 사람 | 정답 비율 |
|---|---|---|---|---|---|
| 1 초 | 1024 MB | 216 | 48 | 40 | 20.101% |
As you may know, you get a colourful balloon for each problem you solve in an ICPC contest. You were quite successful in your last contest and now you own a remarkable collection of $n$ balloons. The obvious thing to do with these balloons is to pop them all using darts. However, you only have three darts.
The balloons are modelled as points in the plane with fixed locations. For each dart you choose from where and in which direction to throw it. The dart travels in a straight line, popping all balloons in its way.
As you practised a lot during the last years, you can throw a dart precisely in any direction and it will fly infinitely far. Thus, if anyone can pop all the balloons, it is you. However, before the fun begins, you first need to determine if you can pop all balloons using at most three darts.
The input consists of:
It is guaranteed that no two balloons are at the same location.
Output "possible" if three darts are sufficient to pop all balloons and "impossible" otherwise.
6 0 0 1 1 2 4 3 9 4 16 5 25
possible
7 0 0 1 1 2 4 3 9 4 16 5 25 6 36
impossible
7 -1 -1 0 0 1 1 2 4 3 9 4 16 5 25
possible
ICPC > Regionals > Europe > Northwestern European Regional Contest > German Collegiate Programming Contest > GCPC 2023 B번