title: Maximum Number Of Squares That Can Be Fit In A Right Angle Isosceles Triangle
signature: def maximum_number_of_squares_that_can_be_fit_in_a_right_angle_isosceles_triangle(b, m):
test_code: import array
  import bisect
  import collections
  import datetime
  import functools
  import heapq
  import itertools
  import math
  import queue
  import re
  import string
  import sys
  from typing import Any, Dict, List, Optional, Set
  
  
  # SOLUTION CODE
  # ============================================
  PLACEHOLDER_CODE_BODY
  
  # TESTING CODE 
  # ============================================
  def validate_solution(actual, expected):
      return abs(actual - expected) < 1e-09
  
  def driver(b, m, expected):
      try:
          if validate_solution(PLACEHOLDER_FN_NAME(
              b, m),
              expected
          ):
              return "PASSED"
          return "FAILED"
      except Exception as exception_obj:
          return type(exception_obj).__name__
      
  if __name__ == "__main__":
      result = driver(40, 74, -0.1241782322863404)
      print(f"TEST-0...{result}")
  
      result = driver(38, 35, 0.04653061224489791)
      print(f"TEST-1...{result}")
  
      result = driver(47, 71, -0.11188256298353501)
      print(f"TEST-2...{result}")
  
      result = driver(52, 29, 0.7110582639714625)
      print(f"TEST-3...{result}")
  
      result = driver(21, 9, 1.5555555555555558)
      print(f"TEST-4...{result}")
  
      result = driver(50, 33, 0.3902662993572084)
      print(f"TEST-5...{result}")
  
      result = driver(8, 82, -0.04402141582391434)
      print(f"TEST-6...{result}")
  
      result = driver(56, 80, -0.10500000000000001)
      print(f"TEST-7...{result}")
  
      result = driver(93, 5, 163.68000000000004)
      print(f"TEST-8...{result}")
  
      result = driver(21, 90, -0.08944444444444444)
      print(f"TEST-9...{result}")
  
      sys.exit(0)
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;
  }