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

4589번 - Gnome Sequencing 다국어

시간 제한메모리 제한제출정답맞힌 사람정답 비율
1 초 128 MB47263065287265.571%

문제

In the book All Creatures of Mythology, gnomes are kind, bearded creatures, while goblins tend to be bossy and simple-minded. The goblins like to harass the gnomes by making them line up in groups of three, ordered by the length of their beards. The gnomes, being of different physical heights, vary their arrangements to confuse the goblins. Therefore, the goblins must actually measure the beards in centimeters to see if everyone is lined up in order.

Your task is to write a program to assist the goblins in determining whether or not the gnomes are lined up properly, either from shortest to longest beard or from longest to shortest.

입력

The input starts with line containing a single integer N, 0 < N < 30, which is the number of groups to process. Following this are N lines, each containing three distinct positive integers less than 100.

출력

There is a title line, then one line per set of beard lengths. See the sample output for capitalization and punctuation.

제한

예제 입력 1

3
40 62 77
88 62 77
91 33 18

예제 출력 1

Gnomes:
Ordered
Unordered
Ordered

힌트

출처

ICPC > Regionals > North America > Mid-Central Regional > 2009 Mid-Central Regional Programming Contest B번

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

출처

대학교 대회

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

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