0
1
mirror of https://git.sb/baoshuo/OI-codes.git synced 2024-11-24 01:48:56 +00:00
OI-codes/Luogu/P1258/P1258.py

4 lines
232 B
Python
Raw Normal View History

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])))