Logo
(追記) (追記ここまで)

19131번 - Huge Products 다국어

시간 제한메모리 제한제출정답맞힌 사람정답 비율
1 초 512 MB822100.000%

문제

Bobo has a lot of integers. Frankly, he has $a_1$ number of 1ドル,ドル $a_2$ number of 2ドル,ドル $\dots,ドル $a_{10}$ number of 10ドル$.

Today, bobo would like to pick some of the numbers and calculate their product (If none of the numbers are chosen, the product is defined as 1ドル$). bobo is curious about the number of different products he can obtain, modulo $(10^9 + 7)$.

입력

10ドル$ integers $a_1, a_2, \dots, a_{10}$ (0ドル \leq a_i \leq 10^9$).

출력

A single integer denotes the number of products.

제한

예제 입력 1

0 1 0 1 0 0 0 1 0 0

예제 출력 1

7

예제 입력 2

0 1000000000 100000000 0 0 0 0 0 0 0

예제 출력 2

400000001

힌트

출처

Camp > Petrozavodsk Programming Camp > Winter 2015 > Day 1: Xiaoxu Guo Contest 3 H번

(追記) (追記ここまで)

출처

대학교 대회

  • 사업자 등록 번호: 541-88-00682
  • 대표자명: 최백준
  • 주소: 서울시 서초구 서초대로74길 29 서초파라곤 412호
  • 전화번호: 02-521-0487 (이메일로 연락 주세요)
  • 이메일: contacts@startlink.io
  • 통신판매신고번호: 제 2017-서울서초-2193 호

AltStyle によって変換されたページ (->オリジナル) /