Problem I
Ding Dong Ditch
Languages
en
sv
Raunak and his friends want to play a prank on their neighbors by performing the classic "Ding Dong Ditch". They want to individually ring the doorbell of a number of their neighbors and then run away from there. But some neighbors are very dangerous, since they could get very angry and even potentially bite you!
There are
For each friend who rings the doorbell, they want to choose
Note that multiple friends may ring the doorbell of the same house.
Input
The first line consists of two positive integers
Output
Print
Grading
Your solution will be tested on a number of test-case groups. To receive points for a group, your solution must correctly solve every test-case in the group.
Group |
Point value |
Constraints |
|
|
|
|
|
|
|
|
All |
|
|
|
|
|
No further restrictions |
Sample Input 1 | Sample Output 1 |
---|---|
4 2 3 2 1 4 3 1 |
6 1 |
Sample Input 2 | Sample Output 2 |
---|---|
5 1 12 2 14 6 9 3 |
17 |