Created
February 12, 2015 18:12
-
-
Save aka7h/72f345f2d9af5479c650 to your computer and use it in GitHub Desktop.
Easy 3 in codingames.com
This file contains 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, math | |
# Auto-generated code below aims at helping you parse | |
# the standard input according to the problem statement. | |
# game loop | |
while 1: | |
l=[] | |
SX, SY = [int(i) for i in input().split()] | |
for i in range(8): | |
MH = int(input()) # represents the height of one mountain, from 9 to 0. Mountain heights are provided from left to right. | |
l.append(MH) | |
m = max(l) | |
C = l.index(m) | |
if SX == C: | |
print('FIRE') | |
else: | |
print('HOLD') |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment