CCC '07 J5 - Keep on Truckin'
Submit solution
Points:
1
Time limit:
1.0s
Memory limit:
256M
Problem type
Allowed languages
C++, Python
Output the number of different ways the driver can choose the motels to make the trip, under the given constraints.
Sample Input 1
1
500
0Sample Output 1
0Sample Input 2
970
1030
0Sample Output 2
1Sample Input 3
970
1040
0Sample Output 3
4Sample Input 4
970
1030
1
4960Sample Output 4
2
Comments