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几点注意

Posted by mk_dh at 2018-09-30 15:09:00 on Problem 1027
1.用BufferedReader代替Scanner,效率提升很多。
2.用全局的Queue
3.用BufferedReader的readLine做好trim,并且有可能输入换行空行,这种都要做好处理
4.输出Final score之后,多输出一个‘\n’,否则格式错误

5.应该不需要自己手写queue,jdk自己的性能足够。

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