Gift Box (UVA 13053) by aizu_f
Contest: 3738    RunID: 20174095    Status: Compilation error    Date: Sat Oct 14 15:15:17 JST 2017


#include <bits/stdc++.h>
#include<set>
#include<algorithm>
#include<cmath>
#include<sstream>
#include<stdio.h>
#define INF 100000000
#include<map>
#define pb push_back
#define ll long long int
#define inf 2000000000
#define pi (2.0 * acos(0.0))
#define ssort(v) sort(v.begin(), v.end())
#define ull unsinged long long int
#define mem(a, b) memset(a, b, sizeof(a))
#define mm 100009 
int c, kk = 1, ts;
double rs, l,w,h,q,a,b;
int main(){
int t, i, j, k;
scanf("%d", &ts);
while(ts--){
	scanf("%d %d %d", &j, &k, &c);
	a = j; b = k;  h = 1.0 * c; l = 2.0 *(a + h);
	w = 2.0 * (b + h);
	rs = sqrt(sqr(l) + sqr(w));
	printf("Case %d: %.41f\n", kk++, rs);

}
return 0;
}