title: Pythagorean Quadruple
signature: pythagoreanQuadruple(a, b, c, d) {
test_code: import 'dart:convert';
  
  // SOLUTION CODE
  // ============================================
  PLACEHOLDER_CODE_BODY
  
  // TESTING CODE 
  // ============================================
  bool validateSolution(bool actual, bool expected){
      return actual.toString() == expected.toString();
  }
  
  String driver(a, b, c, d, bool expected){
      try
      {
          if (validateSolution(PLACEHOLDER_FN_NAME(a, b, c, d), expected)){
              return "PASSED";
          }
          return "FAILED";
      }catch(exception_object){
          return exception_object.runtimeType.toString();
      }
  }
  
  int main() {
  
      print("TEST-0...${driver(
          1, 1, 1, 3, 
          false)
      }");
  
      print("TEST-1...${driver(
          3, 2, 5, 38, 
          false)
      }");
  
      print("TEST-2...${driver(
          0, 0, 0, 0, 
          true)
      }");
  
      print("TEST-3...${driver(
          -1, -1, -1, 1, 
          false)
      }");
  
      print("TEST-4...${driver(
          82, 79, 6, 59, 
          false)
      }");
  
      print("TEST-5...${driver(
          14, 57, 35, 29, 
          false)
      }");
  
      print("TEST-6...${driver(
          6, 96, 45, 75, 
          false)
      }");
  
      print("TEST-7...${driver(
          13, 7, 3, 63, 
          false)
      }");
  
      print("TEST-8...${driver(
          96, 65, 72, 93, 
          false)
      }");
  
      print("TEST-9...${driver(
          70, 33, 6, 2, 
          false)
      }");
  
      return 0;
  }
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;
  }