Time Limit: 1 sec
Memory Limit: 16MB
Some friends have the same hobby, they are collecting stamps. Once upon a time they decided to make an exhibition. Exhibition brought them some money and now they do not know how to divide their income. They decided to divide their money according this rule: "The percent of whole income that i-th friend will get is equal to the part of his unique stamp's type."
The stamp type is called unique if and only if this type of stamps of owned only by one person.
Case i: a1%
a2% a3% ... an%
". Where "i
"
is a test number, and "ai
" percent of income that goes
to i-th friend.
1
3
3 1 2 3
2 4 5
3 4 2 6
Case 1: 50.000000% 25.000000% 25.000000%
Problem setters: Aleksej Viktorchik, Leonid Shishlo.
Huge Easy Contest #1