Problem H
Dice Results
Languages
en
is
You are given a set of dice which will be thrown. Each die
has some number of sides
Input
The first line of input contains a single integer
Output
For each result from
Sample Input 1 | Sample Output 1 |
---|---|
2 4 5 |
0 1 2 3 4 4 3 2 1 |
Sample Input 2 | Sample Output 2 |
---|---|
4 1 1 4 8 |
0 0 0 1 2 3 4 4 4 4 4 3 2 1 |