1027 大数乘法 ——51Nod
来源:互联网 发布:淘宝客服发票话术 编辑:程序博客网 时间:2024/05/17 09:32
基准时间限制:1 秒 空间限制:131072 KB
给出2个大整数A,B,计算A*B的结果。
Input
第1行:大数A
第2行:大数B
(A,B的长度 <= 1000,A,B >= 0)
Output
输出A * B
Input示例
123456
234567
Output示例
28958703552
代码:
import java.util.*;import java.math.*;public class Main { /** * @param args */ public static void main(String[] args) { // TODO Auto-generated method stub Scanner in = new Scanner(System.in); BigInteger big1 = in.nextBigInteger(); BigInteger big2 = in.nextBigInteger(); System.out.println(big1.multiply(big2)); }}
阅读全文
0 0
- 1027 大数乘法 ——51Nod
- 51nod -1027 . 大数乘法
- 51nod 1027 大数乘法
- 51nod 1027 大数乘法
- 51nod 1027 大数乘法
- 51nod 1027 大数乘法
- 【51nod】1027 大数乘法
- 51Nod 1027 大数乘法
- 51Nod-1027-大数乘法
- 51Nod 1027 大数乘法
- 51nod 1027 大数乘法
- 51Nod 1027 大数乘法
- 51Nod 大数乘法
- 51nod 大数乘法
- 51Nod-1027-大数乘法
- 51nod oj 1027 大数乘法【数组模拟】
- 51Nod-1028-大数乘法 V2
- 【51nod 1028 大数乘法 V2】
- android KeyEvent中各种值
- 图像语义分割概述
- 正则表达式常用类
- 亚马逊AWS EC2 ping不通的原因
- TCP/IP协议图
- 1027 大数乘法 ——51Nod
- spring boot注解@SpringBootApplication、@Controller、@RestController
- android之生成二维码和扫描
- uva 1645 count 水题
- STM32-录制与播放空调/TV遥控器的红外信号
- Could not get constructor for org.hibernate.persister.entity.SingleTableEntityPersister
- 【ccf-201709-1】打酱油
- 中企动力詹衡:低价拼装式经营让“云”轻松落地
- mysql权限分配