아직 만들고 있는 페이지입니다.

이 페이지는 아직 만드는 중입니다. 보이는 내용은 바뀔 수 있습니다.

Alloys

시간 제한15초메모리 제한1024 MB

요약
유연성과 전도도를 가진 n개의 합금 중 두 값 모두에서 다른 합금에 지지 않는 합금의 ID를 출력한다.
난이도

보통10점 중 4점

유형
정렬, 배열
정답자
아직 제출이 없습니다

문제

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.

예제2

  1. 예제 1

    입력
    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
    
  2. 예제 2

    입력
    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