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:为什么会超时呢

Posted by BrokenMoon at 2006-09-30 22:54:10 on Problem 1003
In Reply To:为什么会超时呢 Posted by:00520027 at 2005-12-01 18:08:38
> #include<stdio.h>
> void main()
> {
> int i;
> float n=0.0,m;
> scanf("%f",&m);
> for(i=2;;i++)
> {
> n=n+1/i;
> if(n>=m)
> break;
> }
> printf("%dcard(s)",i-1);
> }

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