| ||||||||||
| Online Judge | Problem Set | Authors | Online Contests | User | ||||||
|---|---|---|---|---|---|---|---|---|---|---|
| Web Board Home Page F.A.Qs Statistical Charts | Current Contest Past Contests Scheduled Contests Award Contest | |||||||||
Re:为什么会超时呢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: |
All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator