title: Breaking Number First Part Integral Division Second Power 10
signature: function breaking_number_first_part_integral_division_second_power_10(n)
test_code: 
  
  -- SOLUTION CODE
  -- ============================================
  PLACEHOLDER_CODE_BODY
  
  -- TESTING CODE 
  -- ============================================
  function isCorrect(actual, expected)
      if type(expected) ~= type(actual) then
          return false
      end
      
      if type(expected) == 'table' then
          for k,v_expected in pairs(expected) do
              
              if actual[k] == nil then
                  return false
              end
              local v_actual = actual[k]
              if not isCorrect(v_actual, v_expected) then
                  return false
              end
              actual[k]=nil
          end
      
          if next(actual) then 
              return false
          end
          return true
      else
          return actual == expected
      end
  end
  
  function validateSolution(actual, expected)
      return isCorrect(actual,expected)
  end
  
  function driver(n, expected)
      local exec_result;
      local status, error_msg = pcall(function () 
          exec_result=PLACEHOLDER_FN_NAME(n) 
      end)
      if status then
          if validateSolution(exec_result,expected) then
              return "PASSED"
          end
          return "FAILED"
      else
          return string.format("ERROR=%s",string.gsub(error_msg,".*:[%d]+: ",""))
      end
  end
      
  function main()
      result = driver("ZCoQhuM", 0)
      print(string.format("TEST-0...%s",result))
  
      result = driver("2674377254", 0)
      print(string.format("TEST-1...%s",result))
  
      result = driver("11", 1)
      print(string.format("TEST-2...%s",result))
  
      result = driver("LbuGlvRyWAPBpo", 0)
      print(string.format("TEST-3...%s",result))
  
      result = driver("26382426486138", 0)
      print(string.format("TEST-4...%s",result))
  
      result = driver("111010111010", 2)
      print(string.format("TEST-5...%s",result))
  
      result = driver("hUInqJXNdbfP", 0)
      print(string.format("TEST-6...%s",result))
  
      result = driver("5191", 0)
      print(string.format("TEST-7...%s",result))
  
      result = driver("1110101101", 1)
      print(string.format("TEST-8...%s",result))
  
      result = driver("2202200", 2)
      print(string.format("TEST-9...%s",result))
  
  end
  
  main()
source_py: def breaking_number_first_part_integral_division_second_power_10(N):
      length = len(N)
      l = int((length / 2))
      count = 0
      for i in range((l + 1)):
          s = N[0:(0 + i)]
          l1 = len(s)
          t = N[i:(l1 + i)]
          try:
              if ((s[0] == '0') or (t[0] == '0')):
                  continue
          except:
              continue
          if (s == t):
              count += 1
      return count
source_cpp: int breaking_number_first_part_integral_division_second_power_10(string N) {
    int len = N . length ( );
    int l = ( len ) / 2;
    int count = 0;
    for ( int i = 1;
    i <= l;
    i ++ ) {
      string s = N . substr ( 0, i );
      int l1 = s . length ( );
      string t = N . substr ( i, l1 );
      if ( s [ 0 ] == '0' || t [ 0 ] == '0' ) continue;
      if ( s . compare ( t ) == 0 ) count ++;
    }
    return count;
  }