C ++ program to count the number of numbers formed by digits a and b exactly of a length N such that the sum of the digits of the number thus formed is of digits a and b .
#include <bits/stdc++.h> NEW_LINE using namespace std ; const int mod = 1e9 + 7 ; const int N = 1000005 ; int fact [ N ] , invfact [ N ] ;