Online JudgeProblem SetAuthorsOnline ContestsUser
Web Board
Home Page
F.A.Qs
Statistical Charts
Problems
Submit Problem
Online Status
Prob.ID:
Register
Update your info
Authors ranklist
Current Contest
Past Contests
Scheduled Contests
Award Contest
User ID:
Password:
  Register

Java似乎太狠了一点~完全屏蔽了细节问题,只需A+B~

Posted by SWUST_smiles at 2010-10-05 17:15:31 on Problem 2756
import java.io.BufferedInputStream;
import java.math.*;
import java.util.*;

public class Main{
	public static void main(String[] args){
		Scanner cin = new Scanner(new BufferedInputStream(System.in));
		int n=cin.nextInt();
		for(int i=1;i<=n;i++){
			BigDecimal a = cin.nextBigDecimal();
			BigDecimal b = cin.nextBigDecimal();
			System.out.println(a.add(b));
		}
	}
}

Followed by:

Post your reply here:
User ID:
Password:
Title:

Content:

Home Page   Go Back  To top


All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator