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

Re:ft,终于用java过了...

Posted by MasterLuo at 2009-04-06 10:19:13 on Problem 3723
In Reply To:Re:用scanner超时...数据是有问题...估计是卡C++的getchar()的.但是java数据不规范用流很麻烦 Posted by:afterglow at 2009-04-06 09:47:38
> 可以自己写个关于BufferedReader的nextInt
> 我一般都这么干
> leave=0;
> BufferedReader in=new BufferedReader(new InputStreamReader(System.in));
> int nextInt() throws Exception
> 	{
> 		while (leave==0)
> 		{
> 			st=new StringTokenizer(in.readLine());
> 			leave=st.countTokens();
> 		}
> 		leave--;
> 		return Integer.parseInt(st.nextToken());
> 	}

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