<a target=_blank href="http://acm.hdu.edu.cn/showproblem.PHP?pid=1402">题目点击打开链接</a>
import java.math.BigDecimal; import java.util.Scanner; public class p1402 { public static void main(String[] args) { Scanner sc=new Scanner(system.in); BigDecimal A,B; while(sc.hasNext()){ A=sc.nextBigDecimal(); B=sc.nextBigDecimal(); System.out.println(A.multiply(B)); } } }