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

怎么做我的怎么怎么是waiting;?

Posted by jianxiaqingyqd at 2005-11-01 16:37:14 on Problem 1003
program pku1003(input,output);
var r,s:real;t:longint;
begin
while not eof do
 begin
 readln(s);
 t:=1;
 r:=0;
 while (r-s)<exp(-38) do
  begin
  inc(t);
  r:=r+1/t;
  end;
 dec(t);
 writeln(t,' 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