atcoder#ABC245H. [ABC245Ex] Product Modulo 2
[ABC245Ex] Product Modulo 2
Score : points
Problem Statement
Among the sequences of length consisting of integers, , how many satisfy all of the conditions below? Find the count modulo .
- for every .
- .
Constraints
- All values in input are integers.
Input
Input is given from Standard Input in the following format:
Output
Print the answer.
2 3 6
5
The five sequences satisfying the conditions are .
10 0 2
1023
1000000000 20220326 1000000000000
561382653
Be sure to find the count modulo .