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 08swu at 2008-12-28 19:53:01 on Problem 1003
这样行不行
program pll(input,output);
  var   s1,s2:real; i:integer;
  begin readln(s1);
        i:=1; s2:=0;
        if s1>0
        then begin while s2<s1 do
               begin i:=i+1; s2:=s2+1/i end;
                writeln(i-1,' card(s)')
             end
  end.

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