- 相關(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)文章:
數(shù)電_模電_單片機等的面試題目11-20
平安杭分的二面面試11-20
迅雷JAVA廣州站二筆筆試題目分享11-21
2017年計算機基礎(chǔ)培訓(xùn)試題及答案02-15
計算機二級VB筆試試題(含答案)11-21
2014廣西計算機聯(lián)考一級筆試模擬試題及答案02-25
網(wǎng)易筆經(jīng)11-11