HDU 3546(高精度,java写)
来源:互联网 发布:功能复古相机软件 编辑:程序博客网 时间:2024/05/22 13:34
Calculator
Time Limit: 2000/2000 MS (Java/Others) Memory Limit: 65535/32768 K (Java/Others)
Total Submission(s): 173 Accepted Submission(s): 65
Problem Description
Golden Adobe is the most advanced computer for scientific computing in the world. Unfortunately, it broke down. Your task is to write a super computing software to take its place. The software contains 10 registers named from A to J. There are three operations on the registers:
1) Assignment: X=Y
2) Addition: X+=Y
3) Multiplication: X*=Y
Notice that X and Y are two registers, and they may be the same.
Initially, all the registers are stored by integer 1. Your program should operate several operations and output the final result for 10 registers. You may assume that the length of each decimal number stored in the register is no longer than 5000.
1) Assignment: X=Y
2) Addition: X+=Y
3) Multiplication: X*=Y
Notice that X and Y are two registers, and they may be the same.
Initially, all the registers are stored by integer 1. Your program should operate several operations and output the final result for 10 registers. You may assume that the length of each decimal number stored in the register is no longer than 5000.
Input
The input contains only one test case including several lines.
Each line contains an operation to be calculated.
The number of operations will no more than 300000.
Each line contains an operation to be calculated.
The number of operations will no more than 300000.
Output
The output should contains exactly 10 lines, each line contains an integer denoting the decimal number in the register. See sample test case for further details.
Sample Input
A+=BA*=AA+=AB+=AC+=BD=B
Sample Output
89109111111
- HDU 3546(高精度,java写)
- hdu 1063(java写高精度)
- HDU 1063 / PKU 1001 (小数高精度乘法,JAVA写的)
- HDU高精度总结(java大数类)
- JAVA hdu 1047 Integer Inquiry(高精度)
- JAVA hdu 1063 Exponentiation(高精度)
- Hdu-5050 Divided Land(Java高精度)
- HDU高精度总结(java大数类)
- HDU 1002 a+b(高精度+java)
- hdu 1063 java 高精度
- HDU-4762 Java高精度
- java 写 高精度加法 HDU1002
- hdu 5429 Geometric Progression(java 高精度+java输入外挂)
- hdu 1063 Exponentiation(java+高精度)
- HDU 5241 - Friends <高精度 + Java>
- hdu 5050 java高精度GCD
- JAVA hdu 1753 大明A+B(高精度)
- JAVA hdu 1316 How Many Fibs?(高精度)
- [C#] DataRow类的使用方法
- 获取documents路径 iphone
- 没有可用于当前位置的源代码
- Hashtable和HashMap的区别
- 私有构造函数,私有析构函数
- HDU 3546(高精度,java写)
- Object expected
- 提到“子类”和“子类型”是不同的
- 童继龙 IT 目标规划的介意
- VC++abc之一
- Zend Framework学习 之错误处理
- 20个开发人员非常有用的Java功能代码
- 如何使用VSTS写单元测试
- mmap and DMA