Product
Submit
Language is selected by the extension of the file. See the list of supported languages to know the extension of your language.
Problem
Given two numbers x and N, find the number of x-digit numbers whose product of digits is N.
Input format:
Each lines contain two numbers Nand x.
Output Format:
For each input case, output the result on a new line.
Options
exec is denied
now post-mortem time, all source codes will be revealed
Sample input:_
204120 10
210 4
3780 4
35 7
22680 7
Sample output:
3432240
48
0
42
22470
Sample input:_
5 2
8 3
Sample output:
2
10
Ranking
Rank | User | Size | Time | Date | Statistics |
---|
1 | pooq | 81 | 0.1776 | 2012/11/04 20:53:03 | 0B / 62B / 16B |
Rank | User | Size | Time | Date | Statistics |
---|
1 | pooq | 58 | 0.0327 | 2012/04/03 07:01:55 | 0B / 34B / 20B |
Rank | User | Size | Time | Date | Statistics |
---|
1 | pooq | 51 | 0.0453 | 2011/01/13 21:14:10 | 0B / 33B / 13B |
Rank | User | Size | Time | Date | Statistics |
---|
1 | pooq | 78 | 0.0328 | 2012/04/03 06:58:24 | 0B / 52B / 22B |
Rank | User | Size | Time | Date | Statistics |
---|
1 | pooq | 49 | 0.0015 | 2011/01/12 20:14:57 | 0B / 32B / 10B |
Rank | User | Size | Time | Date | Statistics |
---|
1 | teebee | 36 | 0.0299 | 2012/03/21 01:39:49 | 0B / 22B / 9B |
2 | pooq | 38 | 0.0654 | 2012/03/20 22:50:42 | 0B / 22B / 11B |
Rank | User | Size | Time | Date | Statistics |
---|
1 | pooq | 57 | 0.2683 | 2011/05/08 01:27:02 | 0B / 40B / 11B |
Rank | User | Size | Time | Date | Statistics |
---|
1 | teebee | 48 | 0.2051 | 2011/12/20 03:14:29 | 0B / 27B / 16B |
2 | pooq | 52 | 0.9133 | 2011/12/20 01:15:08 | 0B / 33B / 14B |
Rank | User | Size | Time | Date | Statistics |
---|
1 | pooq | 43 | 0.0212 | 2018/01/23 11:59:22 | 0B / ?B / ?B |
Rank | User | Size | Time | Date | Statistics |
---|
1 | pooq | 48 | 0.5886 | 2011/08/21 15:14:06 | 0B / 31B / 12B |
Rank | User | Size | Time | Date | Statistics |
---|
1 | pooq | 59 | 6.6664 | 2011/02/26 01:08:15 | 0B / 42B / 17B |
Rank | User | Size | Time | Date | Statistics |
---|
1 | pooq | 41 | 0.0057 | 2011/04/11 11:53:37 | 0B / 29B / 5B |
2 | teebee | 48 | 0.3232 | 2011/04/04 11:04:46 | 0B / 34B / 5B |
Language Ranking_
Rank | Lang | User | Size | Score |
1 | gs2 | tails (whio) | 20 | 10000 |
2 | dc | tails (embed) | 29 | 6896 |
3 | Vim | udioica | 33 | 6060 |
4 | K | teebee | 36 | 5555 |
5 | Perl | tails | 37 | 5405 |
6 | Ruby | leonid (embed) | 38 | 5263 |
7 | Logo | pooq | 41 | 4878 |
8 | jq | pooq | 43 | 4651 |
9 | J | pooq | 46 | 4347 |
10 | R | pooq | 48 | 4166 |
11 | Asymptote | teebee | 48 | 4166 |
12 | BASIC | pooq | 49 | 4081 |
13 | Python | hallvabo (embed) | 50 | 4000 |
14 | Xtal | pooq | 51 | 3921 |
15 | C | teebee(embed) | 55 | 3636 |
16 | Maxima | pooq | 57 | 3508 |
17 | Lua | pooq | 58 | 3448 |
18 | Scala | pooq | 59 | 3389 |
19 | OCaml | m.ukai | 68 | 2941 |
20 | Icon | pooq | 78 | 2564 |
21 | Io | pooq | 81 | 2469 |
22 | Java | teebee(embed) | 83 | 2409 |
return to the top page