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