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

为什么我总是过不了?!大家帮忙呀!

Posted by xyztt6623 at 2005-11-16 17:55:26 on Problem 1003
#include<stdio.h>
void main()
{
	float n,m;
	int i;
	scanf("%f",&n);
if(n!=0)
{i=2;
	m=0;
	do 
	{m=m+(float)1/i;
	  i=i+1;
	}
	while(m<n);
	printf("%d card(s)\n",i-2);
}
}

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