杭电计算机笔试题

上传人:郭** 文档编号:116122653 上传时间:2019-11-15 格式:DOC 页数:2 大小:56.27KB
返回 下载 相关 举报
杭电计算机笔试题_第1页
第1页 / 共2页
杭电计算机笔试题_第2页
第2页 / 共2页
亲,该文档总共2页,全部预览完了,如果喜欢就下载吧!
资源描述

《杭电计算机笔试题》由会员分享,可在线阅读,更多相关《杭电计算机笔试题(2页珍藏版)》请在金锄头文库上搜索。

1、杭电计算机笔试题 第一题是:一个长整型的数,从低位起取出奇数位组成一个新的数输出 第二题是杭电acm1002题 A+BProblemII ProblemDescription Ihaveaverysimpleproblemforyou.GiventwointegersAandB,yourjobistocalculatetheSumofA+B. Input ThefirstlineoftheinputcontainsanintegerT(1=T=20)whichmeansthenumberoftestcases.ThenTlinesfollow,eachlineconsistsoftwoposi

2、tiveintegers,AandB.Noticethattheintegersareverylarge,thatmeansyoushouldnotprocessthembyusing32bitinteger.Youmayassumethelengthofeachintegerwillnotexceed1000. Output Foreachtestcase,youshouldoutputtwolines.ThefirstlineisCase:,meansthenumberofthetestcase.ThesecondlineistheanequationA+B=Sum,SummeanstheresultofA+B.Notetherearesomespacesinttheequation.Outputablanklinebetweentwotestcases. SampleInput 2 12 112233445566778899998877665544332211 SampleOutput Case1: 1+2=3 Case2: 112233445566778899+998877665544332211=1111111111111111110

展开阅读全文
相关资源
正为您匹配相似的精品文档
相关搜索

最新文档


当前位置:首页 > 办公文档 > 工作范文

电脑版 |金锄头文库版权所有
经营许可证:蜀ICP备13022795号 | 川公网安备 51140202000112号