| 시간 제한 | 메모리 제한 | 제출 | 정답 | 맞힌 사람 | 정답 비율 |
|---|---|---|---|---|---|
| 1 초 | 2048 MB | 81 | 71 | 66 | 86.842% |
The Call for Problems for the ICPC North America Qualifier (NAQ) has finished, and a number of problems were proposed. The judges voted on the difficulty of each problem. The NAQ this year will feature some number of problems. The NAQ wants to feature problems with as many unique difficulties of possible. Compute the maximum number of unique difficulties attainable.
The first line of input contains two integers $n$ and $k$ (1ドル \le k \le n \le 50$). NAQ will use exactly $k$ problems out of the $n$ proposed.
Each of the next $n$ lines contains a single integer $d$ (1ドル \le d \le 50$). These are the difficulties of the $n$ problems proposed.
Output a single integer, which is the maximum number of unique difficulties that the NAQ can feature.
20 19 43 4 19 27 34 7 12 34 44 36 38 38 39 34 30 35 44 47 39 5
15
ICPC > Regionals > North America > North America Qualification Contest > ICPC North America Qualifier 2025 C번
University > MIT > The MIT Programming Contest > 2025-26 > MIT Team Contest 1 C번