【模拟】可被5整除的二进制前缀序列
/LeetCode: 1018 Binary Prefix Divisible by 5Description:Given an array A of 0s and 1s, consider N_i: the i-th subarray from A[0] to A[i] interpreted as a binary number (from most-significant-bit to least-significant-bit.)
Return a list of booleans answer, where answer[i] is true if and only if N_i is divisible by 5.
Note:1 <= A.length <= 30000A[i] is 0 or 1/#include
int main() { return 0;}