| 시간 제한 | 메모리 제한 | 제출 | 정답 | 맞힌 사람 | 정답 비율 |
|---|---|---|---|---|---|
| 15 초 (추가 시간 없음) | 1024 MB | 54 | 27 | 20 | 42.553% |
A chemical scientist is attempting to create a new metal alloy that possesses both flexibility and conductivity. To achieve this, the scientist blends various types of metals and then assesses their capabilities. Subsequently, the experiments yield varying levels of conductivity and flexibility over time. Certain metal alloys exhibit high flexibility but low conductivity, while others show the opposite, and finally, a few have both attributes in a diminished capacity. To further his experiments, he is solely focused on alloys that are not dominated by others, allowing for more in-depth investigations.
Here, "dominating" refers to an alloy with flexibility x and conductivity y, where no other alloy exhibits both greater flexibility and conductivity.
For instance, consider the testing of five different alloys A, B, C, D, E resulting in the following flexibility and conductivity values: A=(1,5), B=(2,2), C=(3,4), D=(5,2), and E=(4,1). In this scenario, the scientist is particularly interested in alloys A, C, and D.
Another graphical example is depicted in the below image, where red dots represent dominant alloys.
The first line of the input contains a single integer n (0 < n < 107). The remaining n lines of the input contain points in the form of (id flexibility conductivity) separated with space. Both flexibility and conductivity must be considered to be floating point values.
The IDs of dominant points separated with space in alphanumeric order.
5 A 1.0 5.0 B 2.0 2.0 C 3.0 4.0 D 5.0 2.0 E 4.0 1.0
A C D
5 4 3.0 4.0 13 1.0 1.0 32 3.0 6.0 111 5.0 5.0 23 1.0 4.0
111 32