You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
while(true){letmountainHighest=0;letmountainToShot=0;for(leti=0;i<8;i++){constmountainH=parseInt(readline());// represents the height of one mountain.if(mountainHighest<mountainH){mountainHighest=mountainHmountainToShot=i}}// Write an action using console.log()// To debug: console.error('Debug messages...');console.log(mountainToShot);// The index of the mountain to fire on.}
https://www.codingame.com/ide/puzzle/the-descent
The text was updated successfully, but these errors were encountered: