POJ 2756 : Autumn is a Genius - java大数
来源:互联网 发布:淘宝买家秀福利的店铺 编辑:程序博客网 时间:2024/06/06 03:44
(寒假马拉松 第八场 B题)
java解法参考
C++解法:小灰灰的高精度
高精度参考
import java.io.*;import java.util.*;import java.math.*;public class Main{public static void main(String args[]){Scanner sc=new Scanner(System.in);int i,n=sc.nextInt();for(i=0;i<n;i++){if(sc.hasNextBigInteger()==false)sc.skip("\\s\\D");BigInteger a=sc.nextBigInteger();if(sc.hasNextBigInteger()==false)sc.skip("\\s\\D");BigInteger b=sc.nextBigInteger();a=a.add(b);System.out.println(a);}}}
0 0
- poj 2756 Autumn is a Genius(JAVA:浮点大数)
- POJ 2756 : Autumn is a Genius - java大数
- POJ 2756 Autumn is a Genius 大数加减法
- poj 2756 Autumn is a Genius java解决!!!
- poj 2756 Autumn is a Genius
- Poj 2756 Autumn is a Genius
- poj-2756-Autumn is a Genius
- POJ 2756 Autumn is a Genius 使用string的大数加减
- poj 2756 Autumn is a Genius(高精度加法)
- poj 2756 Autumn is a Genius 高精度加减
- Autumn is coming
- Thinking like a Genius
- Thinking like a Genius
- Thinking like a genius
- This autumn is so particular
- Java大数 poj 1001
- JAVA 大数A+B
- Genius
- POJ 2800 : Joseph\'s Problem (须仔细分析)
- POJ 2680 / ZOJ 2584 : Computer Transformation - 打表+找规律+高精度 / java大数
- POJ 2818 : Making Change - dfs
- POJ 2796 : Feel Good - 区间运算最值
- POJ 2973 : Scrabble - 字符串
- POJ 2756 : Autumn is a Genius - java大数
- POJ 2677 / ZOJ 2581 : Tour - DP
- POJ 1835 : 宇航员 - 模拟,三维向量旋转
- POJ 2714 : Random Walk - 贪心
- POJ 3177 / POJ 3352 : Redundant Paths / Road Construction - 边双连通分量,缩点
- #include<list>类的用法
- js DateFormat
- 带分数 - 搜索,next_permutaion妙用
- POJ 1276 : Cash Machine - 多重背包