#PCBSAU0000004. Chia nguyên với số âm (Negative Floor Division)
Chia nguyên với số âm (Negative Floor Division)
Negative Floor Division
Source: Phước Hưng OJ
Version: Phuoc Hung OJ Extended
Problem Statement
Given an integer that may be negative and a positive integer , find the floor quotient and the remainder using Python 3 rules.
Input
One line containing integers .
Output
Print and on one line.
Subtask
- Subtask 1 — 100 points: ; .
Example
Input
-7 3
Output
-3 2
Explanation
With , floor division gives , not . The remainder is . The output is -3 2.