Problem A

Statement
Copy Copied
Description:
Polycarp has $$$n$$$ coins, the value of the $$$i$$$-th coin is $$$a_i$$$. Polycarp wants to distribute all the coins between his pockets, but he cannot put two coins with the same value into the same pocket.

For example, if Polycarp has got six coins represented as an array $$$a = [1, 2, 4, 3, 3, 2]$$$, he can distribute the coins into two pockets as follows: $$$[1, 2, 3], [2, 3, 4]$$$.

Polycarp wants to distribute all the coins with the minimum number of used pockets. Help him to do that.

Input Format:
The first line of the input contains one integer $$$n$$$ ($$$1 \le n \le 100$$$) — the number of coins.

The second line of the input contains $$$n$$$ integers $$$a_1, a_2, \dots, a_n$$$ ($$$1 \le a_i \le 100$$$) — values of coins.

Output Format:
Print only one integer — the minimum number of pockets Polycarp needs to distribute all the coins so no two coins with the same value are put into the same pocket.

Note:
None

Submissions

IDLanguageExit CodeTimestampCodeStdoutStderrRetry
4599 py 0 2026-02-26T07:25:47.874367Z View View View Retry
4598 py 1 2026-02-26T07:25:23.49476Z View View View Retry
4596 py 1 2026-02-26T07:16:24.142882Z View View View Retry
4593 py 1 2026-02-26T06:55:56.788305Z View View View Retry
4581 go 0 2026-02-25T13:16:00.184517Z View View View Retry
4580 py 1 2026-02-25T13:14:00.742056Z View View View Retry