uva10106(大数乘法)

时间:2024-04-07 23:35:55
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();
}
}

用java写就变成大水题了(-_-)