Advertisement
Nenogzar

Untitled

Oct 14th, 2023
843
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 1.06 KB | None | 0 0
  1. country = input()
  2. apparatus = input()
  3.  
  4. difficulty = 0
  5. turn = 0
  6.  
  7. if apparatus == "ribbon":
  8.     if country == "Russia":
  9.         difficulty = 9.100
  10.         turn = 9.400
  11.     elif country == "Bulgaria":
  12.         difficulty = 9.600
  13.         turn = 9.400
  14.     elif country == "Italy":
  15.         difficulty = 9.200
  16.         turn = 9.500
  17.  
  18. elif apparatus == "hoop":
  19.     if country == "Russia":
  20.         difficulty = 9.300
  21.         turn = 9.800
  22.     elif country == "Bulgaria":
  23.         difficulty = 9.550
  24.         turn = 9.750
  25.     elif country == "Italy":
  26.         difficulty = 9.450
  27.         turn = 9.350
  28.  
  29. elif apparatus == "rope":
  30.     if country == "Russia":
  31.         difficulty = 9.600
  32.         turn = 9.000
  33.     elif country == "Bulgaria":
  34.         difficulty = 9.500
  35.         turn = 9.400
  36.     elif country == "Italy":
  37.         difficulty = 9.700
  38.         turn = 9.150
  39.  
  40. total_score = difficulty + turn
  41. difference_to_max_score = 20 - total_score
  42.  
  43. print(f"The team of {country} get {total_score:.3f} on {apparatus}.")
  44. print(f"{(difference_to_max_score / 20) * 100:.2f}%")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement