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

Re:水!!!!!!!!!!!!

Posted by 40650149074195 at 2015-11-30 11:53:08 on Problem 1003
In Reply To:水!!!!!!!!!!!! Posted by:CristianoRonaldo at 2015-03-10 20:44:56
> #include<stdio.h>
> int main()
> {
>    int j,k,n,m;
>    double f,s,i;
>    while(scanf("%lf",&f)==1&&f!=0.0)
>    {
>        s=0.0;
>        for(i=2,j=0;s<f;i++,j++)
>        {
>            s+=1/i;
>        }
>        printf("%d card(s)\n",j);
>    }
>    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