Balls And Boxes
https://codeforces.com/problemset/problem/260/C
Input Format
Check Link
Output Format
Check Link
Question Video
Constraints
Check Link
Sample Input
4 4
4 3 1 6
Sample Output
3 2 5 4
Your profile is incomplete!
Please click here to complete your profile
to continue submitting
questions.