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

楼上的 ,你很对,服务器的速度估计也差不多

Posted by xtu708 at 2007-07-23 16:24:11 on Problem 3275
In Reply To:How fast is a program run on the server? Posted by:cloverprince at 2007-07-20 11:38:48
我用题目1000做的测试, 
就是那个直接输出  A+B的题目。 题目要求是1000MS
我在代码中加了这样一段:

for(i=1;i<=400;i++)
for(j=1;j<=400;j++)
for(k=1;k<=400;k++)
{ b=200; }
能通过。。
for(i=1;i<=500;i++)
for(j=1;j<=500;j++)
for(k=1;k<=500;k++)
{ b=200; }
发现超时。

这说明1000MS所能容许的循环数大概在 450*450*450
也就是 1000*1000*1000 的话容许  1000*2.2*2.2*2.2 大概 10s


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