CodingGame - The Descent
목표 : 우주선이 산에 충돌하지 않도록 가장 높은 산 부터 파괴하라 규칙 : 산의 갯수는 8개, 왼쪽 산부터 차례대로 높이를 알려줍니다. 텀 종료 시 가장 높은 산에 발포, 파괴해야 합니다. 우주선은 조금씩 하강합니다. 풀이 사용 언어 : C++ #include #include #include #include using namespace std; /** * The while loop represents the game. * Each iteration represents a turn of the game * where you are given inputs (the heights of the mountains) * and where you have to print an output (the index of ..
2020.04.27