Advertisement
Spocoman

Everest

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