Marks :20
: 1 | : 0
Find the least number $$$M$$$ that includes $$$X$$$ as the leading digits and also $$$M$$$ is a multiple of $$$Y$$$.
The input consist of 2 integers of form $$$X$$$ $$$Y$$$
$$$1\le X \le 10^{18}$$$
$$$1\le Y \le 10^{9}$$$
Output the value of $$$M$$$
33 11
33
50 3
501
In second test case values of $$$M$$$ are $$$50,500,501,502...$$$ and so on.
Since $$$501$$$ is the smallest value of $$$M$$$ which is divisible by $$$Y=3$$$,, Hence $$$501$$$ is our answer.
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.