The world’s Largest Sharp Brain Virtual Experts Marketplace Just a click Away
Levels Tought:
Elementary,Middle School,High School,College,University,PHD
| Teaching Since: | May 2017 |
| Last Sign in: | 398 Weeks Ago, 1 Day Ago |
| Questions Answered: | 66690 |
| Tutorials Posted: | 66688 |
MCS,PHD
Argosy University/ Phoniex University/
Nov-2005 - Oct-2011
Professor
Phoniex University
Oct-2001 - Nov-2016
You are a bird shooting enthusiast. You are standing on position 0 and a flock of birds (assume infinitely many birds) is flying away from you at 1m/s.
The flock of birds is initially at 1m away from you.
Â
Your rating is (P, N) and your time lag is (T, R). This means the following.
Â
N is your range : You can only shoot at the flock of birds if it is at a distance less than or equal to N.
Â
Assume that you have infinitely many bullets.
Â
Given N, P, T, and R. Find the expected number of birds you will shoot down!
Â
Â
A single line containing space separated 4 numbers N, P, T, and R, in that order. P is a real number while others are positive integers.
Â
Â
A single line containing the expected number of birds you will shoot down. The output should be correct to within 10^(-6) of the actual answer.
Â
Â
Â
Input: 10 2 3 4 Output: 1.015625
Hel-----------lo -----------Sir-----------/Ma-----------dam-----------Tha-----------nk -----------You----------- fo-----------r u-----------sin-----------g o-----------ur -----------web-----------sit-----------e a-----------nd -----------and----------- ac-----------qui-----------sit-----------ion----------- of----------- my----------- po-----------ste-----------d s-----------olu-----------tio-----------n.P-----------lea-----------se -----------pin-----------g m-----------e o-----------n c-----------hat----------- I -----------am -----------onl-----------ine----------- or----------- in-----------box----------- me----------- a -----------mes-----------sag-----------e I----------- wi-----------ll