Gift Box (UVA 13053) by beet1333
Contest: 3738    RunID: 20174141    Status: Accepted    Date: Sat Oct 14 15:22:29 JST 2017


#include<bits/stdc++.h>

using namespace std;

using int64 = long long;

struct BeetAizu
{

  BeetAizu()
  {
  }

  void run()
  {
    int L, W, H;
    cin >> L >> W >> H;
    int latte = L + L + H + H;
    int malta = W + W + H + H;
    printf("%.4lf\n", sqrt(latte * latte + malta * malta));
  }
};

int main()
{
  BeetAizu beet;
  int T;
  cin >> T;
  for(int i = 1; i <= T; i++) {
    cout << "Case " << i << ": ";
    beet.run();
  }
}