Skip to content

Commit

Permalink
chore: day11 easy
Browse files Browse the repository at this point in the history
  • Loading branch information
Roshu2003 committed Apr 11, 2024
1 parent f2d8876 commit bf4bd1d
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 0 deletions.
10 changes: 10 additions & 0 deletions Easy/Day11/Problem.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
Let's imagine you're playing a game where you roll a regular six-sided die (with numbers 1 to 6 on its faces).
You want to find out how many different ways you can roll the dice to get a specific total score, n.
For example, if n is 10, you could roll a 3, 3, and 4, or a 1, 4, 1, and 4, and so on.
This task asks you to count the total number of winning roll combinations that add up to exactly n.

Constraints

1 <= n <= 10^18;

Print the number of ways modulo 10^9+7.
5 changes: 5 additions & 0 deletions Easy/Day11/Sample.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
Input:
8

Output:
125
1 change: 1 addition & 0 deletions Easy/Day11/Solution.cpp
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
// Write Your Code Here

0 comments on commit bf4bd1d

Please sign in to comment.