title: Pythagorean Quadruple
signature: fun pythagoreanQuadruple(a: Int, b: Int, c: Int, d: Int): Boolean {
test_code: package main
  
  import kotlin.text.*
  import kotlin.math.*
  
  
  // SOLUTION CODE
  // ===================================
  PLACEHOLDER_CODE_BODY
  
  // TESTING CODE
  // ===================================
  fun validateSolution(actual:Boolean, expected:Boolean):Boolean{
    return actual.equals(expected)
  }
  fun driver(a: Int, b: Int, c: Int, d: Int, expected:Boolean):String {
      try{
        if (validateSolution(PLACEHOLDER_FN_NAME(a, b, c, d), expected)) {
                return "PASSED"
        }
        return "FAILED"
      } catch (e: Exception){
        return e::class.simpleName as String
      }
  
  }
  
  fun main() {
      var result: String = ""
      result = driver(1, 1, 1, 3, false)
      println("TEST-0...${result}")
      
      result = driver(3, 2, 5, 38, false)
      println("TEST-1...${result}")
      
      result = driver(0, 0, 0, 0, true)
      println("TEST-2...${result}")
      
      result = driver(-1, -1, -1, 1, false)
      println("TEST-3...${result}")
      
      result = driver(82, 79, 6, 59, false)
      println("TEST-4...${result}")
      
      result = driver(14, 57, 35, 29, false)
      println("TEST-5...${result}")
      
      result = driver(6, 96, 45, 75, false)
      println("TEST-6...${result}")
      
      result = driver(13, 7, 3, 63, false)
      println("TEST-7...${result}")
      
      result = driver(96, 65, 72, 93, false)
      println("TEST-8...${result}")
      
      result = driver(70, 33, 6, 2, false)
      println("TEST-9...${result}")
      
          
  }
  
  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;
  }