Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- loop do
- space_x, space_y = gets.split(" ").collect {|x| x.to_i}
- 8.times do
- mountain_h = gets.to_i # represents the height of one mountain, from 9 to 0. Mountain heights are provided from left to right.
- end
- # Write an action using puts
- # To debug: STDERR.puts "Debug messages..."
- if mountain_h == 9
- puts "FIRE"
- else
- puts "HOLD"
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement