Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- comand = input()
- days = 1
- goal = 8848
- first_step = 5364
- yeah = False
- while comand != "END" or first_step >= goal:
- if days >= 5:
- break
- reached_meters = first_step
- if first_step >= goal:
- yeah = True
- break
- climed = int(input())
- if comand == "Yes":
- days += 1
- first_step += climed
- else:
- first_step += climed
- comand = input()
- if yeah:
- print(f"Goal reached for {days} days!")
- else:
- print("Failed!")
- print(f"{first_step}")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement