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

这到底是神马状况,神马时间复杂度都是浮云,膜拜下北大的OJ

Posted by csk22 at 2011-03-23 09:46:50 on Problem 1000
#include<stdio.h>

int main(){ 
int a,b,i,j,c,d=0;


while(scanf("%d%d",&i,&j)!=EOF)
{

for(a=0;a<5000;a++)
for(b=0;b<5000;b++)
for(c=0;c<5000;c++)
   d++;
printf("%d\n",i+j);
}

return 0;
}

注意哦,提交上去只耗16MS。。。对于POJ来说,神马时间复杂度都是浮云。。

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