Advertisement
Guest User

Untitled

a guest
May 27th, 2015
270
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. while (true) {
  2.     var inputs = readline().split(' ');
  3.     var SX = parseInt(inputs[0]);
  4.     var SY = parseInt(inputs[1]);
  5.    
  6.     for (var i = 0; i < 8; i++) {
  7.    
  8.        var MH = parseInt(readline());
  9.  
  10.         MH > 0 ? print('Fire') : print('HOLD');
  11.        printErr(MH); //Trying to see if this MH contains the height of every mountain since loop is going from 0-7 but it only prints  
  12.     }
  13.  
  14. }
  15.  
  16. Game Information:
  17. Height of mountain 0 : 0
  18. Height of mountain 1 : 0
  19. Height of mountain 2 : 0
  20. Height of mountain 3 : 9
  21. Height of mountain 4 : 0
  22. Height of mountain 5 : 0
  23. Height of mountain 6 : 0
  24. Height of mountain 7 : 0
  25.  
  26. Standard Output Stream:
  27. 9
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement