title: Pythagorean Quadruple
signature: function pythagoreanQuadruple($a, $b, $c, $d) {
test_code: <?php
  
  
  // SOLUTION CODE 
  // ============================================
  PLACEHOLDER_CODE_BODY
  
  // TESTING CODE 
  // ============================================
  function validateSolution($actual, $expected){
      return serialize($actual) == serialize($expected);
  }
  
  function driver($a, $b, $c, $d, $expected){
      try{
        if (validateSolution(PLACEHOLDER_FN_NAME($a, $b, $c, $d), $expected)){
          return "PASSED";
        }
        return "FAILED";
      }
      catch (Exception $exception_obj) {
        return get_class($exception_obj);
      }
  }
  
  function main(){
      printf("TEST-0...%s\n",driver(
        1, 1, 1, 3, 
        false));
      
      printf("TEST-1...%s\n",driver(
        3, 2, 5, 38, 
        false));
      
      printf("TEST-2...%s\n",driver(
        0, 0, 0, 0, 
        true));
      
      printf("TEST-3...%s\n",driver(
        -1, -1, -1, 1, 
        false));
      
      printf("TEST-4...%s\n",driver(
        82, 79, 6, 59, 
        false));
      
      printf("TEST-5...%s\n",driver(
        14, 57, 35, 29, 
        false));
      
      printf("TEST-6...%s\n",driver(
        6, 96, 45, 75, 
        false));
      
      printf("TEST-7...%s\n",driver(
        13, 7, 3, 63, 
        false));
      
      printf("TEST-8...%s\n",driver(
        96, 65, 72, 93, 
        false));
      
      printf("TEST-9...%s\n",driver(
        70, 33, 6, 2, 
        false));
      
  }
  
  main();
  ?>
source_py: def pythagorean_quadruple(a, b, c, d):
      sum = (((a * a) + (b * b)) + (c * c))
      if ((d * d) == sum):
          return True
      else:
          return False
source_cpp: bool pythagorean_quadruple(int a, int b, int c, int d) {
    int sum = a * a + b * b + c * c;
    if ( d * d == sum ) return true;
    else return false;
  }