Dhaka Regional ACM ICPC 2016 Mock Contest Solution D - Box Sorting

D. Box Sorting

Score: 1

CPU: 1s
Memory: 1200MB

You are constantly getting threats from your mom to tidy up your desk. On top of your desk, there are lots and lots of cubic boxes of various sizes (You are a collector of boxes?!). Each box can contain one other box, which has size strictly smaller than itself. You have to put the boxes one inside of another in such a configuration that there are minimum number of boxes on the table.

Input

Input will start with the number of test cases, T (T ≤ 100). Following that will be the number of boxes, N (0 < N ≤ 100,000). The following N integers will denote the length of one side for each box, X (0 < X ≤ 2^30 ).

Output

For each test case, print one line of output, “Case Y: Z”. Where Y is the number of test case and Z is the minimum number of boxes on the table.

Sample

InputOutput
2 5 1 5 4 2 3 2 5 5Case 1: 1 Case 2: 2




















Comments

Popular posts from this blog

Solution - Timus Problem 1293. Eniya

Solution - Codeforces Problem 327B - Hungry Sequence

Solution - Timus Problem 1409. Two Gangsters