You are given an integer array
nums.Each
nums[i]is an encoded integer representing two positive integersx_iandy_i. To decodenums[i], define:
width_i = nums[i] % 10.d_i = floor(nums[i] / 10).x_ias the integer formed by the firstwidth_idigits of the decimal representation ofd_i.y_ias the integer formed by all remaining digits of the decimal representation ofd_i.It is guaranteed that the decimal representation of
d_icontains more thanwidth_idigits. Therefore, bothx_iandy_icontain at least one digit.The decoded value of
nums[i]isx_i^y_i.Return the sum of the decoded values of all elements in
nums, modulo10^9 + 7.The
floor()function returns the integer part of the division.