- 相關(guān)推薦
杭電計算機筆試題
第一題是:一個長整型的數(shù),從低位起取出奇數(shù)位組成一個新的數(shù)輸出。
第二題是杭電acm1002題。
a + b problem ii
problem description
i have a very simple problem for you. given two integers a and b, your job is to calculate the sum of a + b.
input
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.
output
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.
sample input
2
1 2
112233445566778899 998877665544332211
sample output
case 1:
1 + 2 = 3
case 2:
112233445566778899 + 998877665544332211 = 1111111111111111110
【杭電計算機筆試題】相關(guān)文章:
迅雷2011.10.21筆試題08-10
中興2015筆試題08-02
海爾04年筆試題及答案07-31
交通銀行2014筆試題題目分享08-10
杭銀玉泉校區(qū)筆試08-10
攀枝花移動筆試題,筆經(jīng)分享08-10
2017發(fā)電部運行管理及安全試題07-31
計算機等級考試筆試題08-10
計算機硬件工程師試題08-05