uva10106(大数乘法)
public class Product { public static void main(String[] args){ Scanner sc = new Scanner(new BufferedInputStream(System.in)); BigDecimal bd1, bd2, ans; while(sc.hasNext()){ bd1 = new BigDecimal(sc.next()); bd2 = new BigDecimal(sc.next()); System.out.println(bd1.multiply(bd2)); } sc.close(); } }
View Code
用java写就变成大水题了(-_-)
版权声明:本文为ya-cpp原创文章,遵循 CC 4.0 BY-SA 版权协议,转载请附上原文出处链接和本声明。