Search found 17 matches

by galois_godel
Sat Jul 20, 2002 1:51 pm
Forum: Volume 1 (100-199)
Topic: 107 - The Cat in the Hat
Replies: 278
Views: 20896

who can give some sample input and sample output for 107

who can give some sample input and sample output for problem 107 because I am unable to know why my answer is wrong program P107(input,output); var h,num,n,k,freenum,sumheight:integer; r,rnum:real; function getn(h,num:integer):integer; var i:integer; c:real; begin if (h-num)=1 then begin getn:=num; ...
by galois_godel
Wed Jul 17, 2002 5:10 pm
Forum: Volume 1 (100-199)
Topic: 107 - The Cat in the Hat
Replies: 278
Views: 20896

WA :107 why??

@BEGIN_OF_SOURCE_CODE program P107(input,output); var h,num,n,k,freenum,sumheight:integer; r,rnum:real; function getn(h,num:integer):integer; var i:integer; c:real; begin if (h-num)=1 then begin getn:=num; exit; end; i:=1; c:=ln(num)*ln(i+1)-ln(h)*ln(i); while abs(c)>0.00000001 do begin i:=i+1; c:=l...

Go to advanced search