首页 > 代码库 > hdu1753

hdu1753

import java.math.*;import java.util.*;import java.io.*;public class hdu1753 {    public static void main(String[] args) {        // TODO Auto-generated method stub        Scanner sc = new Scanner(new BufferedInputStream(System.in));        BigDecimal a,b,ans;        while(sc.hasNext())        {            a = sc.nextBigDecimal();            b = sc.nextBigDecimal();            ans = a.add(b).stripTrailingZeros();            System.out.println(ans.toPlainString());        }    }}
View Code