Forming Quiz Teams

题目描述

[problemUrl]: https://uva.onlinejudge.org/index.php?option=com_onlinejudge&Itemid=8&category=21&page=show_problem&problem=1852 [PDF](https://uva.onlinejudge.org/external/109/p10911.pdf) ![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA10911/52651e149fb0f8981bcf451d0524c3a68e34436d.png)

输入输出格式

输入格式


![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA10911/14bf329c6b094479e78b8bb8d5c4b442b6b963e7.png)

输出格式


![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA10911/1db8a14b58374a3f054c65fbb6dc193b8f14c13a.png)

输入输出样例

输入样例 #1

5
sohel 10 10
mahmud 20 10
sanny 5 5
prince 1 1
per 120 3
mf 6 6
kugel 50 60
joey 3 24
limon 6 9
manzoor 0 0
1
derek 9 9
jimmy 10 10
0

输出样例 #1

Case 1: 118.40
Case 2: 1.41