Logo
(追記) (追記ここまで)

31360번 - Pea-City 스페셜 저지다국어

시간 제한메모리 제한제출정답맞힌 사람정답 비율
2 초 1024 MB157758.333%

문제

The Pea King was a wise ruler and a good strategist. He spent all his time dealing with the state affairs. As the kingdom grew, population increased. The new houses popped up everywhere like mushrooms after the rain. The kings of neighboring states were becoming envious and started to plan a war. In order to protect the capital from the invaders, the Pea King decided to build a new city wall around the capital borders that would lock all the buildings on the city outskirts inside of it as well.

For the aesthetic effect, namely to make the map on the wall in king’s parlor look pretty, it was decided that the capital city should have rectangular borders. Keeping this in mind the total land area should remain as minimal as possible and all the $N$ houses registered should stay inside the borders of the rectangular city.

입력

The first line contains single integer $N$ --- number of houses in the city (3ドル \le N \le 80,000円$). The following $N$ lines contain pairs of integers $X,ドル $Y$ — Cartesian coordinates of the houses ($-25,000円 \le X, Y \le 25,000円$). It’s guaranteed that there are at least three houses not on one line.

출력

Output the coordinates of the rectangular corner points in the counterclockwise order, each pair of coordinates on a separate line. The answer is considered correct if the absolute or relative error for rectangular area does not exceed 10ドル^{-5}$ and all houses are strictly inside the city or at the distance not exceeding 10ドル^{-5}$ from its borders.

제한

예제 입력 1

3
0 0
2 2
2 0

예제 출력 1

0.000000 2.000000
0.000000 0.000000
2.000000 0.000000
2.000000 2.000000

힌트

출처

Contest > Open Cup > 2014/2015 Season > Stage 11: Grand Prix of Tatarstan > Division 1 E번

(追記) (追記ここまで)

출처

대학교 대회

  • 사업자 등록 번호: 541-88-00682
  • 대표자명: 최백준
  • 주소: 서울시 서초구 서초대로74길 29 서초파라곤 412호
  • 전화번호: 02-521-0487 (이메일로 연락 주세요)
  • 이메일: contacts@startlink.io
  • 통신판매신고번호: 제 2017-서울서초-2193 호

AltStyle によって変換されたページ (->オリジナル) /