| 시간 제한 | 메모리 제한 | 제출 | 정답 | 맞힌 사람 | 정답 비율 |
|---|---|---|---|---|---|
| 1 초 | 512 MB | 234 | 94 | 82 | 42.487% |
Gahui is watching the annual character election. After the election, The top 16 characters receive enormous benefits for one year. For that reason, fans vote passionately to get their favorite characters into the top 16. Remarkably, at least one Cinderella appears in every election, achieving an outstanding outcome.
While watching the character's election, Gahui suddenly think about the following problem. There are the following four facts in the election:
She wants to know the maximum number of characters participating in the election. Help Gahui.
$v$ and $k$ are given separated by spaces.
Print $n$ in the first line. $n$ is the number of characters participating in the election.
In the following $n$ lines, print the number of votes obtained by rank.
If there are multiple solutions, you may output any of them.
5 3
3 5 3 1
There are user outputs and verdicts.
[Table 1] user's output and verdict
1st character votes count is not 5.1st and 2nd place is 3.Contest > BOJ User Contest > 가희와 함께 하는 코딩 테스트 > 가희와 함께 하는 6회 코딩 테스트 E번