Integer Inquiry

Time Limit: 2000/1000 MS (Java/Others)    Memory Limit: 65536/32768 K (Java/Others)

Total Submission(s): 14886    Accepted Submission(s): 3811

Problem Description
One of the first users of BIT's new supercomputer was Chip Diller. He extended his exploration of powers of 3 to go from 0 to 333 and he explored taking various sums of those numbers. 

``This supercomputer is great,'' remarked Chip. ``I only wish Timothy were here to see these results.'' (Chip moved to a new apartment, once one became available on the third floor of the Lemon Sky apartments on Third Street.) 
 
Input
The input will consist of at most 100 lines of text, each of which contains a single VeryLongInteger. Each VeryLongInteger will be 100 or fewer characters in length, and will only contain digits (no VeryLongInteger will be negative). 



The final input line will contain a single zero on a line by itself.
 
Output
Your program should output the sum of the VeryLongIntegers given in the input. 





This problem contains multiple test cases!



The first line of a multiple input is an integer N, then a blank line followed by N input blocks. Each input block is in the format indicated in the problem description. There is a blank line between input blocks.



The output format consists of N output blocks. There is a blank line between output blocks.
 
Sample Input
1 123456789012345678901234567890
123456789012345678901234567890
123456789012345678901234567890
0
 
Sample Output
posted @
2017-07-27 14:09 
yxysuanfa 
阅读(...) 
评论(...) 
编辑 
收藏

最新文章

  1. IntelliJ 2016.02设置maven 阿里云加速
  2. javascript URI的编码
  3. WPF快速入门系列(5)——深入解析WPF命令
  4. jcmd命令使用
  5. (贪心5.1.1)POJ 1230 Pass-Muraille
  6. Linux下的下载工具介绍----aria2
  7. grunt的基本概念和使用
  8. Linux Shell脚本入门--Uniq命令
  9. 安装node/npm/webpack步骤
  10. HTML中的表单
  11. spring schedule定时任务(一):注解的方式
  12. 原生js+canvas实现滑动拼图验证码
  13. ListView中ConvertView和ViewHolder
  14. 创建GitHub仓库并与本地Git绑定
  15. docker下搭建fastfds
  16. 查漏补缺之开g的正则
  17. 多目标线性规划求解方法及matlab实现
  18. tensorflow VocabularyProcessor
  19. 我用ASP.NET缓存之数据缓存
  20. C++:友元

热门文章

  1. 开源免费的C/C++网络库(c/c++ sockets library)(转)
  2. (转)cygwin包管理器apt-cyg
  3. C++ string append()添加文本
  4. zlib、libzip、 libzippp 库编译(windows + cmake + vs2013)
  5. AJAX中的同步加载与异步加载
  6. 史上最全的web前端开发程序员学习清单!
  7. asp.net 网站模板怎么用,就是16aspx上面下下来的模板,里面有个sln文件,其他全是文件夹的东西
  8. 中矿新生赛 H 璐神看岛屿【BFS/DFS求联通块/连通块区域在边界则此连通块无效】
  9. Python的程序结构[1] -> 方法/Method[2] -> 魔术方法 __init__ / __del__ / __new__
  10. AppScan入门工作原理详解