#Lutece0612. Seven Dices
Seven Dices
Migrated from Lutece 612 Seven Dices
All parts of this problem, including description, images, samples, data and checker, might be broken. If you find bugs in this problem, please contact the admins.
Description
Mr.Sun has seven dices. A dice has six faces, each showing a different number from to , and having the equal probability to face up after thrown.
One day, he is so bored that he begins to repeatedly throw the seven dices. He throws all the dices together, and adds up the numbers shown on each dice. And now, he wants to know the probability that he gains the total points he desires each time he throws.
Input
There are several test cases, end by EOF. For each case, there is one integers: (), the total points Mr.Sun desires.
Output
For each case, output one real number indicating the probability, round to four decimal places.
Samples
10
20
0.0003
0.0545
Resources
6th BUPT Programming Contest Final