Skip to content

Instantly share code, notes, and snippets.

@lesthack
Created September 20, 2016 22:32
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save lesthack/40a642e2f164e9fe57cef59575562692 to your computer and use it in GitHub Desktop.
Save lesthack/40a642e2f164e9fe57cef59575562692 to your computer and use it in GitHub Desktop.
import sys
import math
# game loop
while True:
mountains = []
for i in xrange(8):
mountain_h = int(raw_input()) # represents the height of one mountain.
mountains.append(mountain_h)
print mountains.index(max(mountains))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment