You've become addicted to the latest craze in collectible card games, PokeCraft: The Gathering. You've mastered the rules! You've crafted balanced, offensive, and defensive decks! You argue the merits of various cards on Internet forums! You compete in tournaments! And now, as they just announced their huge new set of cards coming in the year 2010, you've decided you'd like to collect every last one of them! Fortunately, the one remaining sane part of your brain is wondering: how much will this cost?
There are
Input Specification
The first line of input gives the number of cases,
Output Specification
For each test case, output one line in the form Case #x: E
where
Limits
Time limit: 30 seconds per test set.
Memory limit: 1 GB.
Small Dataset
Large Dataset
Sample Input
2
2 1
3 2
Sample Output
Case #1: 3.0000000
Case #2: 2.5000000
Comments