Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # http://www.thebigquestions.com/2018/12/19/ups-and-downs/
- from __future__ import division
- # Yards.
- ESC_DIST = 100
- STAIR_DIST = 100
- # Yards/minute.
- WALK_SPEED = 10
- ESC_SPEED = 10
- # Minutes.
- WAIT_TIME = 1
- alice_time = ESC_DIST/(ESC_SPEED + WALK_SPEED) + STAIR_DIST/WALK_SPEED
- bob_time = ESC_DIST/(ESC_SPEED + WALK_SPEED) + STAIR_DIST/WALK_SPEED
- resting_alice_time = WAIT_TIME + (ESC_DIST - ESC_SPEED*WAIT_TIME)/(ESC_SPEED + WALK_SPEED) + STAIR_DIST/WALK_SPEED
- resting_bob_time = ESC_DIST/(ESC_SPEED + WALK_SPEED) + WAIT_TIME + STAIR_DIST/WALK_SPEED
- print alice_time, bob_time
- print resting_alice_time, resting_bob_time
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement