/
実行時間制限: 2 sec / メモリ制限: 1024 MiB
配点 : 200 点
問題文
高橋君はアンケート結果を集計しています。
アンケートには N 人が回答し、 i 人目の回答は英字からなる文字列 S_i です。
このアンケートにおいて、同じ回答をした人数の最大値を求めてください。
ただし、回答の大文字と小文字は区別しません。
例えば AtCoder, ATCODER, atcoder はいずれも同じ回答とみなします。
制約
- 1 \leq N \leq 100
- S_i は長さ 1 以上 10 以下の、英大文字及び英小文字のみからなる文字列
- N は整数である
入力
入力は以下の形式で標準入力から与えられる。
N S_1 \vdots S_N
出力
答えを出力せよ。
入力例 1
7 ARC abc ahc ABC beginner AbC ahc
出力例 1
3
ABC と同じ回答が 3 個あり、これが最大値です。
入力例 2
10 x x x x x x x x x x
出力例 2
10
Score : 200 points
Problem Statement
Takahashi is tallying the results of a survey.
N people answered the survey, and the i-th person's answer is a string S_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.
Constraints
- 1 \leq N \leq 100
- S_i is a string of length between 1 and 10 (inclusive) consisting of uppercase and lowercase English letters.
- N is an integer.
Input
The input is given from Standard Input in the following format:
N S_1 \vdots S_N
Output
Output the answer.
Sample Input 1
7 ARC abc ahc ABC beginner AbC ahc
Sample Output 1
3
There are three answers that are the same as ABC, and this number is the maximum.
Sample Input 2
10 x x x x x x x x x x
Sample Output 2
10