generated from OPCODE-Open-Spring-Fest/template
-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
16 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
Input: | ||
8 | ||
|
||
Output: | ||
125 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
// Write Your Code Here |