A + B Problem (Big integer version) 【高精度】

 

Description

Input and output are the same with problem 1001.
But A and B are big non-negative integers.
The biggest integer is less than 10^500.

Input

Input contains multiple test cases. 
Each case have two big non-negative integers a,b.

Output

For each case,Output a+b.

Sample Input

1234567890987654321
9876543210123456789
123456789123456789
321654987321654987
90813211106932703436330736974742561435635584587189767
46753830538032062222085722974121768604305613921745580
03740925981195265531007548716379717949045703916959416
00884305716749604988340858129204579164537470194616440
31395307920624947349951053530086146486307198155590763
46642939267370952542851097327260060898121976009937467
5982933766845473509473676470788342281338779191792495900393751209539300628363443012
65380058626649130748136562206438424438441319057545656
72075358391135537108795991638155474452610874309742867
23136050254230838219905367559282524078861399189856727
711688179374934080772833579539430126162947987054873645
098400340159470592317831490619591482513697328131486228
945410074523776903441005708070311129960512711459455292
1209928891515242515620324828055912854227507525717981351447473570262981491527798

Sample Output

11111111101111111110
445111776445111776
15619326973358183418446729918118098587407690364473542418
82918892916759933088171461227724305691648823148844726876
97623542610375091291627566224202790710310681614372053123
65424301306562421608314759178083226890010380482379311322
21965327312936843628206131144417143690562575588349341894
72944629210303533037202808248872139692289041436957369887
51989296795616398194193006699318213881745198683109563609854970810

代码

 

更多做题心得的详情请查看(记得关注哦)https://mp.weixin.qq.com/s?__biz=MzIyOTM4MDMxNw==&mid=2247483798&idx=1&sn=d4fbd34e50ce4efda39d7710d2dc5dc9&chksm=e842d824df3551320d7f1ed85286b2616aec419f7a852cc5c9c9f270beb237b5e6ca83166162&token=1630951018&lang=zh_CN#rd

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值