Tap here to switch tabs
Problem
Submissions

Problem: Distribute Candies Among Children I

med
30 min
Try to solve the Distribute Candies Among Children I problem.

Statement

You are given two positive integers, n and limit.

Return the total number of ways to distribute n candies among 33 children such that no single child receives more than limit candies.

Constraints:

  • 1≤1 \leq n ≤50\leq 50

  • 1≤1 \leq limit ≤50\leq 50

⋮
Tap here to switch tabs
Problem
Submissions

Problem: Distribute Candies Among Children I

med
30 min
Try to solve the Distribute Candies Among Children I problem.

Statement

You are given two positive integers, n and limit.

Return the total number of ways to distribute n candies among 33 children such that no single child receives more than limit candies.

Constraints:

  • 1≤1 \leq n ≤50\leq 50

  • 1≤1 \leq limit ≤50\leq 50