A + B Problem (Big integer version) 【高精度】
2014-01-12 13:50
459 查看
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
代码
相关文章推荐
- 简单的五子棋(人人对战)
- 仿射变换
- 年份的读法与读数字不同
- 唐山校友会会长苏伟与徐飞校长的一次短信交流
- IOS之操作表ActionSheet(免Delegate)
- 数据存储过程
- 四代i5超值配置单,年度最便宜4代
- 元素的position:absolute;属性和margin-left:480px; margin-top:-20px配合使用
- Cython基础--Cython入门
- Fib数列问题2
- 如何发挥协调战斗能力
- 学习笔记五:Ubuntu下载编译Android源码
- Android 学习杂记
- php程序开发该怎么学,作为过来人的几点建议!
- 黑马程序员------- 网络编程-------
- 数列
- Sky Box
- ajax 基础学习
- 小强的HTML5移动开发之路(16)——神奇的拖放功能
- 小强的HTML5移动开发之路(16)——神奇的拖放功能