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

21139번 - Exam Manipulation 다국어

시간 제한메모리 제한제출정답맞힌 사람정답 비율
1 초 512 MB152928282.000%

문제

A group of students is taking a True/False exam. Each question is worth one point. You, as their teacher, want to make your students look as good as possible—so you cheat! (I know, you would never actually do that.) To cheat, you manipulate the answer key so that the lowest score in the class is as high as possible.

What is the best possible lowest score you can achieve?

입력

The first line of input contains two integers $n$ (1ドル \le n \le 1,000$) and $k$ (1ドル \le k \le 10$), where $n$ is the number of students, and $k$ is the number of True/False questions on the exam.

Each of the next $n$ lines contains a string of length $k,ドル consisting only of upper-case ‘T’ and uppercase ‘F’. This string represents the answers that a student submitted, in the order the questions were given.

출력

Output, on a single line, the best possible lowest score in the class.

제한

예제 입력 1

5 4
TFTF
TFFF
TFTT
TFFT
TFTF

예제 출력 1

2

예제 입력 2

3 5
TFTFT
TFTFT
TFTFT

예제 출력 2

5

힌트

출처

ICPC > Regionals > North America > Southeast USA Regional > 2020 Southeast USA Regional Programming Contest F번

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

ICPC > Regionals > North America > Pacific Northwest Regional > 2020 ICPC Pacific Northwest Region > Division 1 B번

ICPC > Regionals > North America > Pacific Northwest Regional > 2020 ICPC Pacific Northwest Region > Division 2 S번

ICPC > Regionals > North America > South Central USA Regional > 2020 South Central USA Regional Contest F번

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

출처

대학교 대회

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

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