title: Maximum Number Of Squares That Can Be Fit In A Right Angle Isosceles Triangle
signature: maximum_number_of_squares_that_can_be_fit_in_a_right_angle_isosceles_triangle <- function(b, m) {
test_code: 
  
  
  # SOLUTION CODE
  # ============================================
  PLACEHOLDER_CODE_BODY
  
  # TESTING CODE 
  # ============================================
  validate_solution <- function(actual, expected) {
      abs(actual - expected) < 1e-09
  }
  
  driver <- function(b, m, expected){
      if (validate_solution(PLACEHOLDER_FN_NAME(b, m), expected)){
          "PASSED"
      } else{
          "FAILED"
      }
  }
  
  main <- function() {
      cat(sprintf("TEST-0...%s\n",driver(
          40L, 74L, 
          -0.1241782322863404
      )))
  
      cat(sprintf("TEST-1...%s\n",driver(
          38L, 35L, 
          0.04653061224489791
      )))
  
      cat(sprintf("TEST-2...%s\n",driver(
          47L, 71L, 
          -0.11188256298353501
      )))
  
      cat(sprintf("TEST-3...%s\n",driver(
          52L, 29L, 
          0.7110582639714625
      )))
  
      cat(sprintf("TEST-4...%s\n",driver(
          21L, 9L, 
          1.5555555555555558
      )))
  
      cat(sprintf("TEST-5...%s\n",driver(
          50L, 33L, 
          0.3902662993572084
      )))
  
      cat(sprintf("TEST-6...%s\n",driver(
          8L, 82L, 
          -0.04402141582391434
      )))
  
      cat(sprintf("TEST-7...%s\n",driver(
          56L, 80L, 
          -0.10500000000000001
      )))
  
      cat(sprintf("TEST-8...%s\n",driver(
          93L, 5L, 
          163.68000000000004
      )))
  
      cat(sprintf("TEST-9...%s\n",driver(
          21L, 90L, 
          -0.08944444444444444
      )))
  
  }
  
  main()
source_py: def maximum_number_of_squares_that_can_be_fit_in_a_right_angle_isosceles_triangle(b, m):
      return ((((b / m) - 1) * (b / m)) / 2)
source_cpp: int maximum_number_of_squares_that_can_be_fit_in_a_right_angle_isosceles_triangle(int b, int m) {
    return ( b / m - 1 ) * ( b / m ) / 2;
  }