E - LEQ and NEQ
Editorial
/


Time Limit: 2 sec / Memory Limit: 1024 MB
配点 : 点
問題文
長さ の整数列 が与えられます。長さ の整数列 であって、以下の条件をすべて満たすものはいくつあるか求め、 で割った余りを出力してください。
制約
入力
入力は以下の形式で標準入力から与えられる。
出力
答えを出力せよ。
入力例 1Copy
Copy
3 2 3 2
出力例 1Copy
Copy
6
条件をすべて満たす整数列は以下の 通りです。
入力例 2Copy
Copy
10 158260522 877914575 602436426 24979445 861648772 623690081 433933447 476190629 262703497 211047202
出力例 2Copy
Copy
524691026
Score : points
Problem Statement
Given is a sequence of integers . Print the number, modulo , of sequences of integers satisfying all of the following conditions:
Constraints
Input
Input is given from Standard Input in the following format:
Output
Print the answer.
Sample Input 1Copy
Copy
3 2 3 2
Sample Output 1Copy
Copy
6
The following six sequences satisfy all of the conditions.
Sample Input 2Copy
Copy
10 158260522 877914575 602436426 24979445 861648772 623690081 433933447 476190629 262703497 211047202
Sample Output 2Copy
Copy
524691026