C ++ implementation to count the number of ways to divide N in K groups such that each group has elements in range [ L , R ]
#include <bits/stdc++.h> NEW_LINE using namespace std ; const int mod = 1000000007 ;