B. 问卷统计 / Survey Tabulation

    传统题 1000ms 256MiB

问卷统计 / Survey Tabulation

该比赛已结束,您无法在比赛模式下递交该题目。您可以点击“在题库中打开”以普通模式查看和递交本题。

Problem Statement

Takahashi is tallying the results of a survey.

NN people answered the survey, and the ii-th person's answer is a string SiS_i consisting of English letters.

Find the maximum number of people who gave the same answer in this survey. Here, the case of the letters in the answers is not distinguished. For example, AtCoder, ATCODER, and atcoder are all considered the same answer.

Input

The input is given from Standard Input in the following format:

  • NN
  • S1S_1
  • \vdots
  • SNS_N

Output

Output the answer.

Constraints

  • 1N1001 \leq N \leq 100
  • SiS_i is a string of length between 11 and 1010 (inclusive) consisting of uppercase and lowercase English letters.
  • NN is an integer.
7
ARC
abc
ahc
ABC
beginner
AbC
ahc
3

There are three answers that are the same as ABC, and this number is the maximum.

10
x
x
x
x
x
x
x
x
x
x
10

ABC471 赛后模拟赛 ✅

未参加
状态
已结束
规则
IOI
题目
7
开始于
2026-8-18 12:00
结束于
2026-8-25 12:00
持续时间
168 小时
主持人
参赛人数
65