### Instruction: In a kilometer race, A beats B by 50 meters or 5 seconds. What time does A take to complete the race?
Answer Choices: (A) 199 sec (B) 190 sec (C) 726 sec (D) 90 sec (E) 128 sec Let's write a program.### Response: # In a kilometer race, A beats B by 50 meters or 5 seconds. 
# This means that B runs 950 meters in the time A runs 1000 meters.
# Therefore, the time A takes to run 1000 meters (the whole race) is 1000/950 times the time B takes to run 950 meters.
# Since B takes 5 seconds longer than A to run the race, the time B takes to run 950 meters is the time A takes to run 1000 meters plus 5 seconds.
# Therefore, the time A takes to run 1000 meters is 1000/950 times (the time A takes to run 1000 meters plus 5 seconds).
# Solving this equation for the time A takes to run 1000 meters gives:
# time_A = 1000/950 * (time_A + 5)
# time_A * (1 - 1000/950) = 5
# time_A = 5 / (1 - 1000/950)
time_A = 5 / (1 - 1000/950)
print(time_A)