当前你的浏览器版本过低,网站已在兼容模式下运行,兼容模式仅提供最小功能支持,网站样式可能显示不正常。
请尽快升级浏览器以体验网站在线编辑、在线运行等功能。

建议使用的浏览器:

谷歌Chrome 火狐Firefox Opera浏览器 微软Edge浏览器 QQ浏览器 360浏览器 傲游浏览器

1002:A + B Problem II

题目描述
I have a very simple problem for you. Given two integers A and B, your job is to calculate the Sum of A + B.
输入解释
The first line of the input contains an integer T(1<=T<=20) which means the number of test cases. Then T lines follow, each line consists of two positive integers, A and B. Notice that the integers are very large, that means you should not process them by using 32-bit integer. You may assume the length of each integer will not exceed 1000.
输出解释
For each test case, you should output two lines. The first line is "Case #:", # means the number of the test case. The second line is the an equation "A + B = Sum", Sum means the result of A + B. Note there are some spaces int the equation. Output a blank line between two test cases.
输入样例
2
1 2
112233445566778899 998877665544332211
输出样例
Case 1:
1 + 2 = 3

Case 2:
112233445566778899 + 998877665544332211 = 1111111111111111110
来自杭电HDUOJ的附加信息
Author Ignatius.L
Recommend

该题目是Virtual Judge题目,来自 杭电HDUOJ

源链接: HDU-1002

最后修改于 2020-10-25T22:41:17+00:00 由爬虫自动更新

共提交 94

通过率 50.0%
时间上限 内存上限
2000/1000MS(Java/Others) 65536/32768K(Java/Others)