大明 A + B JAVA
java 水过
import java.io.*; import java.util.*; import java.math.BigDecimal; public class aa { public static void main( String args[] ) { BigDecimal a,b; Scanner in = new Scanner ( System.in ); //int t = in.nextInt(); while( in.hasNext() ) { a = in.nextBigDecimal();b = in.nextBigDecimal(); BigDecimal c = a.add(b); System.out.println( c.stripTrailingZeros().toPlainString() ); } } }
本人还是新手 ,转载请注明来自Lvsi‘s home