Advertisement
mbstanchev

everest2

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