The num is defined as the number of substrings of num, when viewed as a string, that satisfy the following conditions:
The substring has a length equal to k.
The integer value represented by the substring divides num evenly.
Return the num.
Note:
Leading zeros in substrings are permitted.
The value
is not a divisor of any integer. Substrings may overlap.
Constraints:
num
k num.length (taking num as a string)
The num is defined as the number of substrings of num, when viewed as a string, that satisfy the following conditions:
The substring has a length equal to k.
The integer value represented by the substring divides num evenly.
Return the num.
Note:
Leading zeros in substrings are permitted.
The value
is not a divisor of any integer. Substrings may overlap.
Constraints:
num
k num.length (taking num as a string)