ENG  RUSTimus Online Judge
Online Judge
Problems
Authors
Online contests
About Online Judge
Frequently asked questions
Site news
Webboard
Links
Problem set
Submit solution
Judge status
Guide
Register
Update your info
Authors ranklist
Current contest
Scheduled contests
Past contests
Rules
back to board

Discussion of Problem 1192. Ball in a Dream

a ac programme
Posted by ruwelcome 26 Apr 2003 11:46
{$A+,B-,D+,E+,F-,G-,I+,L+,N+,O-,P-,Q-,R-,S+,T-,V+,X+,Y+}
{$M 16384,0,655360}
const
pi=3.1415926535;
g=10.00;
var
i,j,k,n:longint;
v,a,m,b,ans:extended;
begin
  assign(input,'e:\ru.in');
  reset(input);
  readln(v,a,m);
  b:=2*sin(a/180*pi)*cos(a/180*pi)/g;
  ans:=b*v*v/(1-1/m);
  writeln(ans:0:2);
end.
Re: a ac programme
Posted by S.77 5 Aug 2011 17:58
You could get more convenient formula for the answer.
v^2/10*k/(k-1)*sin((pi*a)/90)
Re: a ac programme
Posted by [MAI] Zhigireva Alex 28 Aug 2011 21:12
Could you or somebody else explain the formula?
Re: a ac programme
Posted by Salimov Albert 11 Nov 2012 15:33
look on sum of an infinitely decreasing geometric progression
where k=1/q
i hope you will understand
Re: a ac programme
Posted by Egor 26 Nov 2016 21:30
sin(alpha) * cos(alpha) = sin(2 * alpha) / 2