int main() { #ifdef LOCAL freopen("in.txt", "r", stdin); // freopen("out.txt", "w", stdout); #endif int T; scanf("%d", &T); for(int ck=1; ck<=T; ck++) { CLR(to); int N; scanf("%d", &N); for(int i=1,f,t; i<=N; i++) { scanf("%d%d", &f, &t); to[f]=t; } am.construct(to); am.gauss(); printf("Case %d: %.7f\n", ck, am.x[0]); } return 0; }