포럼
문제 ICPC00374

B. Balloon Darts

설명

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:
- One line containing an integer \(n\) (\(1 \leq n \leq 10^4\)), the number of balloons.
- \(n\) lines, each containing two integers \(x\) and \(y\) (\(|x|, |y| \leq 10^9\)), the coordinates of a balloon.

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.

예제 1
입력
6
0 0
1 1
2 4
3 9
4 16
5 25
출력
possible
예제 2
입력
7
0 0
1 1
2 4
3 9
4 16
5 25
6 36
출력
impossible
예제 3
입력
7
-1 -1
0 0
1 1
2 4
3 9
4 16
5 25
출력
possible
문제 정보

생성자가 기록되지 않았습니다.

출처 ICPC GCPC 2023

평가 및 의견

B. Balloon Darts

개요
출제자 난이도 Unrated 레이팅 미적용 의견 0 / 1 공개 집계 (커뮤니티 난이도, 주요 주제, 품질)는 의견이 충분히 모이면 공개됩니다.

Log in to rate problems.

개별 의견

아직 의견이 없습니다. 자격이 된다면 위 양식에서 가장 먼저 평가해 보세요.

풀이 제출

B. Balloon Darts

게스트로 둘러보고 있습니다. 로그인하면 풀이를 제출하고 진행 상황을 확인할 수 있습니다. 로그인하고 제출하기
공개
C++20 Tab 들여쓰기 · Ctrl+/ 주석 토글 · Enter 자동 들여쓰기
1 1 1 0 공백: 4 · UTF-8