Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #04. Everest
- command = input()
- score = 8848
- start_line = 5364
- end_score = 0
- day = 0
- while command != "END":
- meters = int(input())
- if command == "Yes":
- days = day + 1
- end_score = end_score + meters
- elif command == "No":
- days = day
- end_score = end_score + meters
- print(f"Goal reached for {days} days!")
- if end_score >= 8848:
- break
- command = input()
- if day == 5:
- print(f"Failed!")
- print(f"{end_score + start_line}")
Advertisement
Add Comment
Please, Sign In to add comment