Gift Box (UVA 13053) by UKUNICHIA
Contest: 3738    RunID: 20174543    Status: Accepted    Date: Sat Oct 14 16:32:51 JST 2017


#include<bits/stdc++.h>
using namespace std;
using Int = long long;
signed main(){
  
  
  Int T;
  cin>>T;
  for(Int t=1;t<=T;t++){
    cout<<"Case "<<t<<": ";
    double l,w,h;
    cin>>l>>w>>h;
    double ans=sqrt((l+h)*(l+h)+(w+h)*(w+h))*2;
    cout<<fixed<<setprecision(4)<<ans<<endl;
  }
  return 0;
}