Online Judge | Problem Set | Authors | Online Contests | User | ||||||
---|---|---|---|---|---|---|---|---|---|---|
Web Board Home Page F.A.Qs Statistical Charts | Current Contest Past Contests Scheduled Contests Award Contest |
嘿嘿!偷个懒,用了java 的BigDecimal居然过了!惭愧啊import java.io.*; import java.util.*; import java.lang.*; import java.math.*; public class Main { public static void main (String[] args) { Scanner cin=new Scanner(System.in); BigDecimal a = new BigDecimal(cin.next()); BigDecimal b = new BigDecimal(cin.next()); System.out.println(a.multiply(b)); } } Followed by: Post your reply here: |
All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator