title: Maximum Number 2X2 Squares Can Fit Inside Right Isosceles Triangle
signature: def maximum_number_2x2_squares_can_fit_inside_right_isosceles_triangle(base_arg0):
source_py: def maximum_number_2x2_squares_can_fit_inside_right_isosceles_triangle(base):
      base = (base - 2)
      base = (base / 2)
      return ((base * (base + 1)) / 2)
source_cpp: int maximum_number_2x2_squares_can_fit_inside_right_isosceles_triangle(int base) {
    base = ( base - 2 );
    base = base / 2;
    return base * ( base + 1 ) / 2;
  }
question_info.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-06
  
  def driver(base_arg0, expected):
      try:
          if validate_solution(PLACEHOLDER_FN_NAME(
              base_arg0),
              expected
          ):
              return "PASSED"
          return "FAILED"
      except Exception as exception_obj:
          return type(exception_obj).__name__
      
  if __name__ == "__main__":
      result = driver(95, 1104.375)
      print(f"TEST-0...{result}")
  
      result = driver(49, 287.875)
      print(f"TEST-1...{result}")
  
      result = driver(10, 10.0)
      print(f"TEST-2...{result}")
  
      result = driver(73, 647.875)
      print(f"TEST-3...{result}")
  
      result = driver(74, 666.0)
      print(f"TEST-4...{result}")
  
      result = driver(40, 190.0)
      print(f"TEST-5...{result}")
  
      result = driver(10, 10.0)
      print(f"TEST-6...{result}")
  
      result = driver(94, 1081.0)
      print(f"TEST-7...{result}")
  
      result = driver(64, 496.0)
      print(f"TEST-8...{result}")
  
      result = driver(16, 28.0)
      print(f"TEST-9...{result}")
  
      sys.exit(0)
question_info.test_case_ids: ['0', '1', '2', '3', '4', '5', '6', '7', '8', '9']
question_info.entry_fn_name: maximum_number_2x2_squares_can_fit_inside_right_isosceles_triangle
question_info.test_list: [{"idx": 0, "outputs": 1104.375, "inputs": {"base_arg0": 95}}, {"idx": 1, "outputs": 287.875, "inputs": {"base_arg0": 49}}, {"idx": 2, "outputs": 10.0, "inputs": {"base_arg0": 10}}, {"idx": 3, "outputs": 647.875, "inputs": {"base_arg0": 73}}, {"idx": 4, "outputs": 666.0, "inputs": {"base_arg0": 74}}, {"idx": 5, "outputs": 190.0, "inputs": {"base_arg0": 40}}, {"idx": 6, "outputs": 10.0, "inputs": {"base_arg0": 10}}, {"idx": 7, "outputs": 1081.0, "inputs": {"base_arg0": 94}}, {"idx": 8, "outputs": 496.0, "inputs": {"base_arg0": 64}}, {"idx": 9, "outputs": 28.0, "inputs": {"base_arg0": 16}}]
question_info.entry_cls_name: Solution