- 相關(guān)推薦
杭電計(jì)算機(jī)筆試題
第一題是:一個(gè)長(zhǎng)整型的數(shù),從低位起取出奇數(shù)位組成一個(gè)新的數(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
【杭電計(jì)算機(jī)筆試題】相關(guān)文章:
中國(guó)銀行筆試題回顧,新鮮筆經(jīng)!11-21
平安杭分的二面面試11-20
迅雷JAVA廣州站二筆筆試題目分享11-21
2017年計(jì)算機(jī)基礎(chǔ)培訓(xùn)試題及答案02-15
大唐移動(dòng)測(cè)試工程師筆經(jīng),筆試題目分享11-21
舊帖里面找的往年筆試題目和一個(gè)電面面試題庫(kù)!11-20
計(jì)算機(jī)二級(jí)VB筆試試題(含答案)11-21
2014廣西計(jì)算機(jī)聯(lián)考一級(jí)筆試模擬試題及答案02-25
網(wǎng)易筆經(jīng)11-11