The quotient and remainder by a digit
Very easy
Execution time limit is 1 second
Runtime memory usage limit is 64 megabytes
Determine the quotient and remainder when a is divided by b.
Input
The first line contains the number a, which has a maximum length of 100. The second line contains the number b, which is an integer from 1 to 9.
Output
Output the quotient of a divided by b on the first line, and the remainder on the second line.
Examples
Input #1
Answer #1
Submissions 1K
Acceptance rate 33%