| ||||||||||
| 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"
int main()
{
int number,i;
while(scanf("%d",&number))
{
double length=0;
printf("Cards Overhang\n");
for(i=1;i<=number;i++)
length=length+1.0/(i*2);
printf("%5d%10.3f\n",number,length);
}
return 0;
}
Followed by:
Post your reply here: |
All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator