Created
September 20, 2016 22:32
-
-
Save lesthack/40a642e2f164e9fe57cef59575562692 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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