2045. A/B (Big Integer)

单点时限: 2.0 sec

内存限制: 256 MB

Give two positive integer $A$ and $B$, calucate $A/B$.

Notice that $A,B$ is no more than $500$ digits.

输入格式

The test case contain several lines. Each line contains two positive integer $A$ and $B$.

输出格式

For each input line, output a line contain $A/B$. If $B$ can’t be divided then $A \bmod B$ also.

(notice than between $A/B$ and $A \bmod B$ has only a blank)

样例

Input
3 2
100 1
9999999999999999999999999999999999 10
Output
1 1
100
999999999999999999999999999999999 9

108 人解决,169 人已尝试。

153 份提交通过,共有 645 份提交。

4.1 EMB 奖励。

创建: 16 年,5 月前.

修改: 6 年,4 月前.

最后提交: 1 月,2 周前.

来源: N/A

题目标签