You are given an array A containing N elements. Your task is to find the number of subarrays with even products.
A subarray of an array can be obtained by deleting any prefixes and suffixes.
Input format
Output format
For each test case, print a single line denoting subarrays with even products.
Constraints
1≤T≤20000
1≤N≤200000
1≤Ai≤1e9∀i∈[1,N]
Sum of N over all test cases does not exceed 200000
Subarrays with even sum:
[2],[5,2],[2,3],[3,5,2],[5,2,3],[3,5,2,3]
These are 6 in total