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:示例运行没错,submit结果Time Limit Exceeded,求大神解惑

Posted by 442vs433 at 2017-12-02 17:53:35 on Problem 1002
In Reply To:Re:示例运行没错,submit结果Time Limit Exceeded,求大神解惑 Posted by:18292678471 at 2017-11-01 11:04:21
Java虽然不是很清楚, 但是在循环里各种函数调用嵌套函数调用, 各种new, 效率肯定会很低滴, 毕竟循环n的量级还是很大滴

输出部分, 每个结果调用一次输出函数, 毕竟是IO调用开销也不小

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