Skip to content

Commit

Permalink
Update Special_digits.cpp
Browse files Browse the repository at this point in the history
  • Loading branch information
STREIN-11 authored Nov 8, 2024
1 parent 7abca4c commit 6c5fca3
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions Daily/Special_digits.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@ Let us say all the integers of length N, having only A or B in their decimal rep
Also, among all the good integers, all those integers whose sum of digits contains either C or D or both are best integers.
Find the number of best integers of length N. Since the number of best integers can be huge, print it modulo 109+7.
Input:
N = 2, A = 1, B = 2, C = 3, D = 5
Output:
Expand Down

0 comments on commit 6c5fca3

Please sign in to comment.