An intersting OA question

Revision en1, by Punit1566, 2024-08-03 11:14:12

given n and k. there are total 10 groups and each group can have at most k value. So we have to find the number of ways that sum upto n . but each group has upper limit K.

here constraints are 1<=n,k<=1e9; n<=10*k

History

 
 
 
 
Revisions
 
 
  Rev. Lang. By When Δ Comment
en1 English Punit1566 2024-08-03 11:14:12 247 Initial revision (published)