TopCoder

User's AC Ratio

NaN% (0/0)

Submission's AC Ratio

NaN% (0/0)

Tags

Description

The PDF file of all problems can be downloaded HERE

Input Format

Output Format

Sample Input 1

4
0 0 0 0
15 13 13 13
1 2 3 4
15 15 15 15

Sample Output 1

Case 1: 0.000
Case 2: 54.000
Case 3: 16.393
Case 4: -1.000

Hints

Illustration of the Samples:



  1. There is no need to place any card as all required values are 0

  2. We must place all the 54 cards to reach the goal

  3. Note that output isn’t always an integer

  4. 60 Cards? No way!!

Problem Source

Migrated from old NTUJ.

Regional Dhaka 2011

Subtasks

No. Testdata Range Score

Testdata and Limits

No. Time Limit (ms) Memory Limit (VSS, KiB) Output Limit (KiB) Subtasks
0 10000 65536 200