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

变态代码,0MS,难理解~~~~~~~~

Posted by lileiyang12 at 2011-01-26 22:45:58 on Problem 1003
main(n)
{
	float b;
	while(scanf("%f",&b),b)
	{
		for(n=1;b>0;)b-=1./++n;
		printf("%d card(s)\n",n-1);
	}
}

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