Large number division
Submissions: 686   Accuracy:

53.95%

  Difficulty: Easy   Marks: 2

Given a large number (represented as string) which has to divided by another number (represented as int data type). The large number can be very large which does not even fit in biggest data type available. The task is to find division of these numbers.

Input:
The first line of input contains an integer T denoting the number of test cases. Then T test cases follow. Each test case contains a string and a number.

Output:
Print the division of these numbers.

Constraints:
1<=T<=10^5
1<=number<=10^18
1<=divisor<=10^5

Example:
Input:

2
12313413534672234
754
1248163264128256512
125

Output:
3068187711766
1985306113026052

** For More Input/Output Examples Use 'Expected Output' option **

Contributor: Ayush Govil
Author: Ayush Govil 1


If you have purchased any course from GeeksforGeeks then please ask your doubt on course discussion forum. You will get quick replies from GFG Moderators there.



Need help with your code? Please use ide.geeksforgeeks.org, generate link and share the link here.


to report an issue on this page.