atcoder#CODEFESTIVAL2017QUALCB. Similar Arrays
Similar Arrays
Score : points
Problem Statement
We will say that two integer sequences of length , and , are similar when holds for all ().
In particular, any integer sequence is similar to itself.
You are given an integer and an integer sequence of length , .
How many integer sequences are there such that is similar to and the product of all elements, , is even?
Constraints
Input
Input is given from Standard Input in the following format:
Output
Print the number of integer sequences that satisfy the condition.
2
2 3
7
There are seven integer sequences that satisfy the condition:
3
3 3 3
26
1
100
1
10
90 52 56 71 44 8 13 30 57 84
58921