Ddimov90

bonus_score_02_02

Sep 22nd, 2025
87
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.29 KB | Source Code | 0 0
  1. points = int(input())
  2. bonus = 0
  3.  
  4. if points <= 100:
  5.     bonus += 5
  6. elif 100 < points <= 1000:
  7.     bonus += points * 0.2
  8. elif 1000 < points:
  9.     bonus += points * 0.1
  10.  
  11. if points % 2 == 0:
  12.     bonus += 1
  13.  
  14. elif points % 10 == 5:
  15.     bonus += 2
  16.  
  17. print(bonus)
  18. print(f"{points + bonus}")
  19.  
Advertisement
Add Comment
Please, Sign In to add comment