Responsive image

问题 1160 --A B余商

1160: A B余商

时间限制: 1 Sec  内存限制: 128 MB
提交: 139  解决: 2
[提交][状态][讨论版][命题人:]

题目描述

输入两个数,求它们的余数和商。

输入描述

输入两个数,占一行,中间用空格隔开。第一个数可能很大,超过整型,第二个数在int范围。

输出描述

输出占两行......格式见样例。(第一行是余数,第二行是商)

样例输入

110 100
99 10
2147483647 2147483647
2147483646 2147483647

样例输出

The Remainder is:10
The quotient is:1
The Remainder is:9
The quotient is:9
The Remainder is:0
The quotient is:1
The Remainder is:2147483646
The quotient is:0

来源

[提交][状态]
ACM算法攻关部
  • Anything about this OnlineJudge, Please Contact Administrator. Click add QQ

    OJ system based on HUSTOJ Project , UI based on Twitter Bootstrap

    Copyright 2016 ACM算法攻关部
    关于网站改版