title: Find Last Digit Factorial Divides Factorial B
signature: def find_last_digit_factorial_divides_factorial_b(a, b):
source_py: def find_last_digit_factorial_divides_factorial_b(A, B):
      variable = 1
      if (A == B):
          return 1
      elif ((B - A) >= 5):
          return 0
      else:
          for i in range((A + 1), (B + 1)):
              variable = ((variable * (i % 10)) % 10)
          return (variable % 10)
source_cpp: int find_last_digit_factorial_divides_factorial_b(long long int A, long long int B) {
    int variable = 1;
    if ( A == B ) return 1;
    else if ( ( B - A ) >= 5 ) return 0;
    else {
      for ( long long int i = A + 1;
      i <= B;
      i ++ ) variable = ( variable * ( i % 10 ) ) % 10;
      return variable % 10;
    }
  }
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 actual == expected
  
  def driver(a, b, expected):
      try:
          if validate_solution(PLACEHOLDER_FN_NAME(
              a, b),
              expected
          ):
              return "PASSED"
          return "FAILED"
      except Exception as exception_obj:
          return type(exception_obj).__name__
      
  if __name__ == "__main__":
      result = driver(79, 84, 0)
      print(f"TEST-0...{result}")
  
      result = driver(61, 29, 1)
      print(f"TEST-1...{result}")
  
      result = driver(39, 77, 0)
      print(f"TEST-2...{result}")
  
      result = driver(39, 65, 0)
      print(f"TEST-3...{result}")
  
      result = driver(61, 78, 0)
      print(f"TEST-4...{result}")
  
      result = driver(86, 73, 1)
      print(f"TEST-5...{result}")
  
      result = driver(7, 92, 0)
      print(f"TEST-6...{result}")
  
      result = driver(86, 50, 1)
      print(f"TEST-7...{result}")
  
      result = driver(86, 63, 1)
      print(f"TEST-8...{result}")
  
      result = driver(11, 2, 1)
      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: find_last_digit_factorial_divides_factorial_b
question_info.test_list: [{"idx": 0, "outputs": 0, "inputs": {"a": 79, "b": 84}}, {"idx": 1, "outputs": 1, "inputs": {"a": 61, "b": 29}}, {"idx": 2, "outputs": 0, "inputs": {"a": 39, "b": 77}}, {"idx": 3, "outputs": 0, "inputs": {"a": 39, "b": 65}}, {"idx": 4, "outputs": 0, "inputs": {"a": 61, "b": 78}}, {"idx": 5, "outputs": 1, "inputs": {"a": 86, "b": 73}}, {"idx": 6, "outputs": 0, "inputs": {"a": 7, "b": 92}}, {"idx": 7, "outputs": 1, "inputs": {"a": 86, "b": 50}}, {"idx": 8, "outputs": 1, "inputs": {"a": 86, "b": 63}}, {"idx": 9, "outputs": 1, "inputs": {"a": 11, "b": 2}}]
question_info.entry_cls_name: Solution