Type: Default 1000ms 128MiB

练8.4带余除法

You cannot submit for this problem because the contest is ended. You can click "Open in Problem Set" to view this problem in normal mode.

Description

Given the dividend and divisor, calculate the integer quotient and remainder. Use the default integer division and modulo operations without any special handling of the results.

Input Format

Input consists of a single line with two integers, the dividend and divisor (divisor is non-zero), separated by a space.

Output Format

Output a single line with two integers, the integer quotient and remainder, separated by a space.

Sample

10 3
3 1

20251025A班作业(4)

Not Claimed
Status
Done
Problem
8
Open Since
2025-10-25 0:00
Deadline
2025-11-2 23:59
Extension
24 hour(s)