Advertisement
GeorgiLukanov87

snowball100

May 26th, 2022
90
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.44 KB | None | 0 0
  1. n = int(input())
  2. value = 0
  3. max_value = 0
  4.  
  5. for ball in range(1, n+1):
  6.     weight = int(input())
  7.     time = int(input())
  8.     quality = int(input())
  9.     value = (weight / time) ** quality
  10.     if value > max_value:
  11.         max_value = value
  12.         winner_value_ball = max_value
  13.         win_weight = weight
  14.         win_time = time
  15.         win_quality = quality
  16.  
  17. print(f"{win_weight} : {win_time} = {int(winner_value_ball)} ({win_quality})")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement