| ||||||||||
| 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 | |||||||||
233333333333#include <stdio.h>
int main() {
int f[10]={1,1,2,6,24,120,720,5040,40320,362880};
double r[10];
double R=0;
for(int i=0;i<10;i++){
R+=1.0/f[i];
r[i]=R;
}
printf("n e\n- -----------\n0 1\n1 2\n2 2.5\n");
for(int i=3;i<10;i++)printf("%d %.9lf\n",i,r[i]);
return 0;
}
Followed by: Post your reply here: |
All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator