|
|
Can be velocity lager than c? Sir Isaac Newton is important to this problem. In TWO different ways. 4*h * n ( n + 1 ) > H minimal n - is answer!
but I doubt, that this is correct. It's correct or not? v0*t*sin(theta)+0.5*g*sin(theta)*t^2 *n>=sqrt(H*H+l*l) v0=sqrt(2*g*h) t=2*v0/g tan(theta)=H/l. seems to be correct PS. this problem is too simple.. Edited by author 12.10.2017 06:25 Edited by author 12.10.2017 06:40 the correct formula is 4*h*n*(n+1)>(H*H+l*l)/H Maybe provide some explanation Oh Your previous comment is the explanation Let O=(l,H), A=(0,0), B=(l,0). System of coordinates: OX=AO, OY = BO rotate on teta (teta=arctan(H/l)). Then: vx(t) = (v+gt)*sin(teta) vy(t) = (v-gt)*cos(teta) x(t) = V*sin(teta)+g*sin(teta)*(t^2)/2 y(t) = V*cos(teta)-g*cos(teta)*(t^2)/2 First point: (l, H) => x=0, y=0 Second point: y(t)=0 <=> t=2*v/g x(2*v/g) = 4*(V^2)*sin(teta)/g = d = 8 * h * sin(teta) (mg(H+h)=mgH+m*(V^2)/2) x = d, y = 0 Distance between First point and Second point = d Distance between Second point and Third point = 2*d ... Distance between i point and i+1 point = i*d If n = answer => d+2d+3d+...+(n-1)d<=sqrt(H^2 + l^2) d+2d+3d+...+(n-1)d+nd>sqrt(H^2 + l^2) Edited by author 05.08.2018 12:52 I have derived an expression which is giving correct results for the input given on the problem page as well as the ones below : 2 1000000 1 1 1000000000 1 1 500 15811 I got this set from another thread on this problem, however I am still getting WA on test 2. I am rounding off the result in Python : round(abs(n)) and checking for the case when this will round to 0, which will happen for this case : 1 2 1 In which case I output 1. What's special about test 2 ? Can I get a similar test or an idea about the special conditions which have to be checked ? 1475 may be solved only in Integers with using big nums. But firstly we must be good pupils in physics and remember bright facts about falling spheres. Interestig that in floats this facts have so error disturbance that practically unseen. Please give us answers for input data 1000000 1 1 1000000000 1 1 Program output 2 1000000 1 1 1000000000 1 1 500 15811 |
|
|