往届 ACM 队训练题 (参考)

1017. A/B (Big Integer)

单点时限: 2.0 sec

内存限制: 256 MB

Give two positive integer and , calucate .

Notice that is no more than digits.

输入格式

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

输出格式

For each input line, output a line contain . If can’t be divided then also.

(notice than between and has only a blank)

样例

Input
3 2
100 1
9999999999999999999999999999999999 10
Output
1 1
100
999999999999999999999999999999999 9
不限期开放

题目列表