scientific_comp_projects/CODE/[python]kattis/trivial/heart_rate.py
2021-10-29 15:16:40 +02:00

18 lines
296 B
Python

n = int(input())
cases = []
for i in range(n):
bp = input()
b, p = bp.split(' ')
b = float(b)
p = float(p)
bpm = 60*b/p
abpm = 60*(b-1)/p
mabpm = 60*(b+1)/p
cases.append(str(abpm) +' '+ str(bpm) +' '+ str(mabpm))
for case in cases:
print(case)