Huge Products
Time limit1sMemory limit512 MB
Given how many copies of each integer from 1 to 10 are available, count the distinct products of subsets, modulo 10^9+7.
- Level
Medium7 of 10
- Topics
- Number theory, Math, Combinatorics
- Solved
- No attempts yet
Problem
Bobo has a lot of integers. Specifically, he has copies of 1, copies of 2, , and copies of 10.
Today, Bobo wants to pick some of these numbers and calculate their product. If he picks none, the product is defined as 1. Bobo wants to know how many different products he can obtain, modulo .
Input
Ten integers () are given on a single line.
Output
Print a single integer: the number of different products, modulo .