Sum of digits#1681

Sum of digits

1 Sekunde
64 Megabyte
Leicht

Count the number of -digit positive integers for which the sum of digits in the binary and decimal representations is the same. (N = 1..10).

Eingabe

A positive integer (N = 1..10) is given in the input file.

Ausgabe

Output a single integer—the answer to the problem.

Beispiele

Beispiel 1

Loading
Loading