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

233333333333

Posted by KatrineYang at 2016-11-06 13:47:14 on Problem 1517
#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:
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