Advertisement
Spocoman

09. Snowballs

Jan 19th, 2022 (edited)
85
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.31 KB | None | 0 0
  1. num = int(input())
  2. max_value = 0
  3. output = ''
  4.  
  5. for i in range(num):
  6.     snow = int(input())
  7.     time = int(input())
  8.     quality = int(input())
  9.     value = (snow // time) ** quality
  10.     if value > max_value:
  11.         max_value = value
  12.         output = f'{snow} : {time} = {value} ({quality})'
  13.  
  14. print(output)
  15.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement