title: Pythagorean Quadruple
signature: pub fn pythagorean_quadruple(a: i32, b: i32, c: i32, d: i32) -> bool {
test_code: use std::collections::HashMap;
  use std::collections::HashSet;
  use std::cmp::*;
  use std::collections::*;
  use std::fmt::*; 
  
  
  // SOLUTION CODE
  // ============================================
  PLACEHOLDER_CODE_BODY
  
  // TESTING CODE 
  // ============================================
  pub fn validate_solution(actual: bool, expected: bool)->bool{
  return actual==expected
  }
  pub fn driver(a: i32, b: i32, c: i32, d: i32, expected: bool)->String{
      if validate_solution(PLACEHOLDER_FN_NAME(a, b, c, d), expected) {
        return "PASSED".to_string();
      };
      return "FAILED".to_string();
  
  }
  
  fn main() {
      println!("TEST-0...{}", driver(
        1, 1, 1, 3, 
        false
      ));
      
      println!("TEST-1...{}", driver(
        3, 2, 5, 38, 
        false
      ));
      
      println!("TEST-2...{}", driver(
        0, 0, 0, 0, 
        true
      ));
      
      println!("TEST-3...{}", driver(
        -1, -1, -1, 1, 
        false
      ));
      
      println!("TEST-4...{}", driver(
        82, 79, 6, 59, 
        false
      ));
      
      println!("TEST-5...{}", driver(
        14, 57, 35, 29, 
        false
      ));
      
      println!("TEST-6...{}", driver(
        6, 96, 45, 75, 
        false
      ));
      
      println!("TEST-7...{}", driver(
        13, 7, 3, 63, 
        false
      ));
      
      println!("TEST-8...{}", driver(
        96, 65, 72, 93, 
        false
      ));
      
      println!("TEST-9...{}", driver(
        70, 33, 6, 2, 
        false
      ));
      
  }
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;
  }