Floor And Ceil Division

Computer Mathematics Hard 3 views
Back to Questions

Problem Description

Given integers a and b>0, print floor(a/b) and ceil(a/b).

Input Format

Two integers a b.

Output Format

Two integers: floor ceil.

Sample Test Case

Input:
7 3
Output:
2 3

Constraints

b > 0, |a|

Solutions (0)

No solutions submitted yet. Be the first!

Discussion (0)

No comments yet. Start the discussion!

Prev Next