Product - UVa 10106 高精度
来源:互联网 发布:知乎 停车 编辑:程序博客网 时间:2024/05/14 23:58
Product
The Problem
The problem is to multiply two integers X, Y. (0<=X,Y<10250)
The Input
The input will consist of a set of pairs of lines. Each line in pair contains one multiplyer.
The Output
For each input pair of lines the output line should consist one integer the product.
Sample Input
12122222222222222222222222222
Sample Output
144444444444444444444444444
题意:算大乘法。
思路:感觉这类的东西用java的高精度so easy!!【可能是作死
虽然JAVA比较慢,但是JAVA的高精度真的很赞。
JAVA AC代码如下:
import java.math.BigInteger;import java.util.Scanner;public class Main{ public static void main(String [] args) { Scanner scan=new Scanner(System.in); while(scan.hasNextBigInteger()) { BigInteger a=scan.nextBigInteger(); BigInteger b=scan.nextBigInteger(); BigInteger c=b.multiply(a); System.out.println(c); }}}
0 0
- UVa 10106 Product (高精度)
- Product - UVa 10106 高精度
- UVA 10106 Product 高精度乘法
- UVa 10106 - Product 高精度乘法-
- Uva 10106 Product (高精度相乘)
- UVA 10106 Product 高精度运算
- UVA 10106 Product (高精度乘法)
- uva 10106 Product(高精度乘法)
- UVA 10106 Product 简单高精度乘法
- UVA 10106 (暑假-高精度-A - Product)
- uva 10106 Product(高精度大数乘法)
- (高精度运算4.7.21)UVA 10106Product(大数乘法)
- uva 424 Integer Inquiry(高精度加法模板) uva 10106 Product(高精度乘法模板)
- 高精度-10106 product
- UVa 10106 Product
- UVa OJ 10106-Product
- Uva 10106 Product
- uva 10106 Product
- C++容器之forward_list
- 我的大学,我的梦想
- 黑马程序员_JAVA单例设计模式
- poj 1860
- 主宰全球的10大算法(有点夸张,但是有理)
- Product - UVa 10106 高精度
- 20140603 新的开始
- 线下线上将成一体
- python 读取文件
- 程序员都该阅读的书
- python 学习正则与文件读写 从字符串里面找出 邮箱正则
- java基础知识 ---io
- CF7C 扩展欧几里得解不定方程
- 重构改善既有代码的设计--重新组织函数