|Contests||Virtual Contests||Problems||Submit||Runs Status||Rank List||Forum|
After the final exam, Shawn started to play a computer game SW. In the game, Shawn needs to make his equipments. Just like the pattern of most of other games, SW’s equipment can be improved by stones, but different level stones have different ability. The 1st level stone can increase the property of equipment by 0.6, the 2nd is 0.7, and the kth level Lk can increase Lk-1×0.6+ Lk-2×0.5(k≥3). Now, he wants to know how much property the kth level Lk stone can increase.
The first line of the input is an integer T(1≤T≤100) which indicates the sum of test case. Each of the following T lines contains an integer k(1≤k≤100).
For every case output “Case i: Result” in a line where i is the case number and Result is the property the ith level stone can increase. Leave 2 digits after the decimal point.
Case 1: 0.60
Case 2: 0.78
Case 3: 0.95