Problem hidden on 2015-11-15 02:02:45 by Mitch Schwartz
PYMOD - Quotient and Remainder
Given two integers, A and B. Find quotient ( A / B ) and remainder ( A % B ). Return the tuple containing quotient and remainder.
Note: Try to use python built-in function divmod.
Input
The first line contains integer A and the second line contains integer B.
Output
Tuple containing quotient and remainder.
Example
Input:
17
10 Output:
(1 , 7)
Added by: | panku |
Date: | 2015-11-13 |
Time limit: | 0.100s |
Source limit: | 50B |
Memory limit: | 1536MB |
Cluster: | Cube (Intel G860) |
Languages: | MAWK BC NCSHARP COFFEE DART FORTH JULIA KTLN OCT PROLOG PYTHON PYPY3 R RACKET SQLITE SWIFT UNLAMBDA |
Resource: | Mine |