POJ1001 -- A-B Problem
来源:互联网 发布:金钥匙软件下载 编辑:程序博客网 时间:2024/05/17 20:34
A-B Problem
Description
Calculate A-B
Input
Two integer a and b(-10^100 < a,b < 10^100)
Output
Output a-b
Sample Input
1 2
Sample Output
-1
Source
BUPT Online Judge
解:
过程很简单,主要是对大数运算的处理。在此运算只涉及加减法,相对容易。
当年自己用100+位的字符串表示大数。
按a和b的符号(即判断是否为负数),将运算分成四类进行处理。
如果用java,直接用BigDemical类实现即可,是最简单的方法。
- POJ1001 -- A-B Problem
- problem 1000: A+B problem
- Problem 1000 A+B Problem
- Problem - 1000 A + B Problem
- A + B Problem
- A + B Problem
- 1000 A+B Problem
- 1001 A + B Problem
- A+B Problem
- 1000 A+B Problem
- A + B Problem
- A + B Problem
- 1000 A + B Problem
- 1000 A+B Problem
- A + B Problem
- A + B Problem II
- A + B Problem II
- A + B problem II
- 高水位线
- Android中文合集 最终版
- 使用SSE4指令集优化双线性插值图像缩放
- 读取日志文件
- pku--3752 字母旋转
- POJ1001 -- A-B Problem
- 设计网站的URL时应该注意的八个要点
- qt4.7.3编译MYsql驱动
- Microsoft Technical Fellows
- 正则表达式中的?
- android入门
- RS232 串口通信在DSP 控制系统中的设计与应用
- PPC E500内核寄存器
- AutoEventWireup 属性的作用(转载)