| Assiut University Training - Newcomers |
|---|
| Public |
| Spectator |
| Sheet #7 (Recursion) |
|---|
| Finished |
This contest uses time limits scaling policy (depending on a programming language). The system automatically adjusts time limits by the following multipliers for some languages. Despite scaling (adjustment), the time limit cannot be more than 30 seconds. Read the details by the link.
Given two numbers $$$S$$$ and $$$E$$$ where $$$S$$$ denotes a start point and $$$E$$$ denotes an end point. Determine how many possible ways to reach point $$$E$$$ if you can move either 1 step, 2 steps or 3 steps at a time.
Note: Solve this problem using recursion.
Only one line contains two numbers $$$S$$$ and $$$E$$$ $$$ (1 \le S \le E \le 15 )$$$.
Print the answer required above.
2 5
4
In the first example:
There are 4 ways to reach from point 2 to point 5 as follows: [2, 3, 4, 5], [2, 3, 5], [2, 4, 5] and [2, 5].
| Name |
|---|

