Quotient and Remainder

Python Easy 2 views
Back to Questions

Problem Description

Input has two integers a and b are provided (b != 0). Output quotient (a//b) and remainder (a%b) in one line.

Input Format

One line: a b.

Output Format

One line: q r.

Sample Test Case

Input:
17 5
Output:
3 2

Constraints

b != 0, values fit in 64-bit.

Solutions (0)

No solutions submitted yet. Be the first!

Discussion (0)

No comments yet. Start the discussion!

Prev Next