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

7863번 - Very Simple Problem 다국어

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

문제

During a preparation of programming contest, its jury is usually faced with many difficult tasks. One of them is to select a problem simple enough to most, if not all, contestants to solve.

The difficulty here lies in diverse meanings of the term “simple” amongst the jury members. So, the jury uses the following procedure to reach a consensus: each member weights each proposed problem with a positive integer “complexity rating” (not necessarily different for different problems). The jury member calls “simplest” those problems that he gave the minimum complexity rating, and “hardest” those problems that he gave the maximum complexity rating.

The ratings received from all jury members are then compared, and a problem is declared as “very simple”, if it was called as “simplest” by more than a half of the jury, and was called as “hardest” by nobody.

입력

The first line of input file contains integers N and P (1 ≤ N, P ≤ 100), the number of jury members and the number of problems. The following N lines contain P integers in range from 0 to 1000 each — the complexity ratings.

출력

Output file must contain an ordered list of “very simple” problem numbers, separated by spaces. If there are no such problems, output must contain a single integer 0 (zero).

제한

예제 입력 1

4 4
1 1 1 2
5 900 21 40
10 10 9 10
3 4 3 5

예제 출력 1

3

힌트

출처

ICPC > Regionals > Northern Eurasia > Far Eastern Russia Regional Contest > NEERC Far-Eastern Subregional 2002 F번

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

출처

대학교 대회

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

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