MladenKarachanov

Python Godzilla_vs_Kong Не е решена

Oct 18th, 2025
1,176
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.68 KB | None | 0 0
  1. budget = float(input())
  2. numstatist = int(input())
  3. price_clothing = float(input())
  4.  
  5. discount = 0
  6. dekor = budget * 10 / 100
  7. price_statist = numstatist * price_clothing
  8.  
  9. #total_sum = dekor + price_statist
  10.  
  11. if numstatist > 150:
  12.     price_statist = price_statist * 0.90
  13.     total_sum = price_statist + dekor
  14.     diff = abs(budget - total_sum)
  15.     if budget < total_sum:
  16.         #diff = abs(budget - total_sum)
  17.         print("Not enough money!")
  18.         print(f"Wingard needs {diff:.2f} leva more.")
  19.     else:
  20.         #result = abs(budget - total_sum)
  21.         print("Action!")
  22.         print(f"Wingard starts filming with {diff:.2f} leva left.")
  23.        
  24.         #Не е решена
Advertisement
Add Comment
Please, Sign In to add comment