0
1
mirror of https://git.sb/baoshuo/OI-codes.git synced 2024-12-28 04:51:59 +00:00
OI-codes/problem/P1258/P1258.py
Ren Baoshuo 4a3d4d6ec0
P1258 小车问题
C++: R40248094
Python: R40249214
2020-10-21 21:46:15 +08:00

4 lines
232 B
Python

a = input().split()
print('%.6lf' % (((int(a[2]) + int(a[1])) * int(a[0]) / (int(a[2]) + 3 * int(a[1]))) / int(a[2]) +
(int(a[0]) - ((int(a[2]) + int(a[1])) * int(a[0]) / (int(a[2]) + 3 * int(a[1])))) / int(a[1])))