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.)
``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.
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.
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
Spring源码解析-基于注解依赖注入
Spring源码解析-事件
Spring源码解析-AOP简单分析
Spring源码解析-实例化bean对象
Spring源码解析-配置文件的加载
linux 条件判断式
Assembly.LoadFrom加载程序集类型转换失败解决方法
autodesk fbx sdk sample里面的工程无法调试解决方法
Unity ---WidgetsUI CreateTileView Demo
- 最新文章
-
七年开发经验详解JVM的GC 算法
阿里面试官总结40 个 Java 多线程问题
七年开发小结MyBatis 在 Spring 环境下的事务管理
阿里P7教你如何使用 Spring 配置动态数据源实现读写分离
阿里P7详细解答JVM性能调优之监控工具
一语道破Java 11的ZGC为何如此高效
还想免费继续使用JDK吗?从java11以后别从Oracle下载了
Git官网下载慢
postgresql数据库经纬度转geometry
oracle-笛卡尔积(多张
- 热门文章
-
oracle 创建view 权限不足 解决问题
oracle 序列(sequence)和索引(index)
PL/SQL 触发器
Oracle 数据库基本语句
java中重载与重写的区别
Hibernate基础小案例
<%@page contentType="text/html;charset=gbk"%>与<meta http-equiv="Content-Type" content="text/html; charset=GBK">区别
Spring源码解析-Web容器启动过程
Spring源码解析-Advice中的Adapter模式
Spring源码解析-autowiring自动装配的实现