pku_1503 Integer Inquiry
来源:互联网 发布:php教程从入门到精通 编辑:程序博客网 时间:2024/06/06 03:32
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.
Sample Input
1234567890123456789012345678901234567890123456789012345678901234567890123456789012345678900
Sample Output
370370367037037036703703703670
========================================================================
题目类型:大数
算法:貌似大整数没什么算法可以说的...就是模拟吧....就是建议输入输出用C的,没了
代码:
- pku_1503 Integer Inquiry
- Integer Inquiry
- Integer Inquiry
- Integer Inquiry
- Integer Inquiry
- Integer Inquiry
- Integer Inquiry
- Integer Inquiry
- Integer Inquiry
- Integer Inquiry
- Integer Inquiry
- Integer Inquiry
- Integer Inquiry
- Integer Inquiry
- Integer Inquiry
- Integer Inquiry
- POJ – 1503 Integer Inquiry Integer Inquiry
- 1503 Integer Inquiry
- C#操作xml
- 异常的概念和Java异常体系结构
- C#中操作XML2
- 对CURL的一些研究
- Linux源码规模(代码行数)研究
- pku_1503 Integer Inquiry
- pku_1565 Skew数
- Handle Back Button
- 发布使用Windows Media Format 9 Series SDK 开发的程序
- Combobox设定选定项
- 测试职业生涯阶段发展方向
- 一. SQL Server 2008 新特性概述
- 我的青春谁做主主要内容
- LiveKd用来在单机上实现Windbg内核调试