Marks :10
: 16 | : 2
Given an integer $$$p$$$, and two large numbers in the form of string $$$L$$$ and $$$R$$$.
Count the number of values between $$$L$$$ to $$$R$$$ (both inclusive) that are divisible by $$$p$$$, and the number should have even value at the odd indices and odd values in the even indices.
The first line contains an integer $$$p(1 \le p \le 25)$$$
The second line contains $$$L(1 \le L \le 10^{99})$$$
The third line contains $$$R(L \le R \le 10^{99})$$$
Output the answer modulo $$$10^{9}+7$$$
7 1 25
2
2 8 15
0
In the given sample case, there are 3 numbers divisible by 7 in the range of 1 to 25.
You need to login to view your submissions.
You need to login to view all submissions.
Result : Executed
Feel something is wrong with the test cases?
Result : Accepted
Test Cases :
But to Run or Submit the Problem, you need to Log In.
Continue to Log InYour challenge has been submitted successfully.
You will get a response soon via WhatsApp or Email.
Do let us know your issue.