Advertisement
Spocoman

Choreography

Oct 9th, 2023
1,144
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.42 KB | None | 0 0
  1. from math import ceil
  2.  
  3. steps = int(input())
  4. dancers = int(input())
  5. days = int(input())
  6.  
  7. day_step_percent = ceil(steps / days / steps * 100)
  8. dancer_step_percent = day_step_percent / dancers
  9.  
  10. if day_step_percent < 13:
  11.     print(f"Yes, they will succeed in that goal! {dancer_step_percent:.2f}%.")
  12. else:
  13.     print(f"No, they will not succeed in that goal! Required {dancer_step_percent:.2f}% steps to be learned per day.")
  14.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement