Gift Box (UVA 13053) by aizu_e
Contest: 3738    RunID: 20174415    Status: Accepted    Date: Sat Oct 14 16:05:06 JST 2017


#include<bits/stdc++.h>
using namespace std;
int main(){
  int n;
  cin>>n;
  for(int i=1;i<=n;i++){
    int l,w,h;
    cin>>l>>w>>h;
    double ans=2*sqrt(pow(l+h,2)+pow(w+h,2));
    printf("Case %d: %.4f\n",i,ans);
  }
  return 0;
}