Advertisement
mbstanchev

everest

Feb 20th, 2022
30
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.48 KB | None | 0 0
  1. comand = input()
  2. days = 1
  3. goal = 8848
  4. first_step = 5364
  5. while first_step <= goal:
  6. if comand == "END":
  7. break
  8. if days >= 5:
  9. break
  10. climed = int(input())
  11. first_step += climed
  12. if comand == "Yes":
  13. days += 1
  14. elif comand == "No":
  15. pass
  16. if first_step >= goal:
  17. break
  18. comand = input()
  19. if first_step >= goal:
  20. print(f"Goal reached for {days} days!")
  21. else:
  22. print("Failed!")
  23. print(f"{first_step}")
  24.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement