title: Pythagorean Quadruple
signature: class Solution {
  
      public Boolean pythagoreanQuadruple(Integer a, Integer b, Integer c, Integer d) {
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;
  }
question_info.extension: java
question_info.entry_fn_name: pythagoreanQuadruple
question_info.entry_cls_name: Solution
question_info.test_list: [{"idx": 0, "outputs": false, "inputs": {"a": 1, "b": 1, "c": 1, "d": 3}}, {"idx": 1, "outputs": false, "inputs": {"a": 3, "b": 2, "c": 5, "d": 38}}, {"idx": 2, "outputs": true, "inputs": {"a": 0, "b": 0, "c": 0, "d": 0}}, {"idx": 3, "outputs": false, "inputs": {"a": -1, "b": -1, "c": -1, "d": 1}}, {"idx": 4, "outputs": false, "inputs": {"a": 82, "b": 79, "c": 6, "d": 59}}, {"idx": 5, "outputs": false, "inputs": {"a": 14, "b": 57, "c": 35, "d": 29}}, {"idx": 6, "outputs": false, "inputs": {"a": 6, "b": 96, "c": 45, "d": 75}}, {"idx": 7, "outputs": false, "inputs": {"a": 13, "b": 7, "c": 3, "d": 63}}, {"idx": 8, "outputs": false, "inputs": {"a": 96, "b": 65, "c": 72, "d": 93}}, {"idx": 9, "outputs": false, "inputs": {"a": 70, "b": 33, "c": 6, "d": 2}}]
question_info.test_code: import static java.util.Map.entry;  
  import java.util.*;
  import java.lang.*;
  // TESTING CODE 
  // ============================================
  class QuestionEvaluator {
      public static String validateSolution(Integer a, Integer b, Integer c, Integer d, Boolean expected){
          try{
              Driver driver = new Driver();
              if (driver.run(a, b, c, d,expected)){
                  return "PASSED";
              }
              return "FAILED";
              
          } catch (Exception exception_obj){
              return exception_obj.getClass().getSimpleName();
          }
  
      }
      public static void main(String[] args) {
          String result;
          result = validateSolution(1, 1, 1, 3, false);
          System.out.println(String.format("%s%s","TEST-0...",result));    
      
          result = validateSolution(3, 2, 5, 38, false);
          System.out.println(String.format("%s%s","TEST-1...",result));    
      
          result = validateSolution(0, 0, 0, 0, true);
          System.out.println(String.format("%s%s","TEST-2...",result));    
      
          result = validateSolution(-1, -1, -1, 1, false);
          System.out.println(String.format("%s%s","TEST-3...",result));    
      
          result = validateSolution(82, 79, 6, 59, false);
          System.out.println(String.format("%s%s","TEST-4...",result));    
      
          result = validateSolution(14, 57, 35, 29, false);
          System.out.println(String.format("%s%s","TEST-5...",result));    
      
          result = validateSolution(6, 96, 45, 75, false);
          System.out.println(String.format("%s%s","TEST-6...",result));    
      
          result = validateSolution(13, 7, 3, 63, false);
          System.out.println(String.format("%s%s","TEST-7...",result));    
      
          result = validateSolution(96, 65, 72, 93, false);
          System.out.println(String.format("%s%s","TEST-8...",result));    
      
          result = validateSolution(70, 33, 6, 2, false);
          System.out.println(String.format("%s%s","TEST-9...",result));    
      
      }
  }
  
  class Driver{
      public boolean run(Integer a, Integer b, Integer c, Integer d, Boolean expected){
  
          PLACEHOLDER_CLS_NAME sol = new PLACEHOLDER_CLS_NAME();
          return validateSolution(sol.PLACEHOLDER_FN_NAME(a, b, c, d),expected);
      }
      
      public boolean validateSolution(Boolean actual, Boolean expected){
          return actual.equals(expected);
      }
  }
  
  
  // SOLUTION CODE
  // ============================================
  PLACEHOLDER_CODE_BODY
question_info.test_case_ids: 0 1 2 3 4 5 6 7 8 9
question_info.commands: java __FILENAME__