산소 시스템
코드 출현 2019 15일차
퍼즐 입력을 사용하여 시뮬레이터를 사용해보십시오!

작업: X에 대해 풀기 여기서...
1 부
X = the fewest number of movement commands required to move the repair droid from its starting position to the location of the oxygen system
2 부
X = the number of minutes it will take to fill the space with oxygen
예시 입력 없음
1 부
인코드 컴퓨터: 7라운드!
입력 규칙:
Only four movement commands are understood: north (1), south (2), west (3), and east (4)
출력 규칙:
0,1,2
중 하나0
: 벽. 움직이지 않았다. 1
: 엽니다. 움직이는. 2
: 이동했습니다. 산소 시스템에서! 사명:
Direct the repair droid to the oxygen system and fix the problem
알고리즘 잊어버리기: 바로 시뮬레이터 구축
끄기 시도하러 갑니다. 곧 돌아오세요!
응 나 돌아 왔어!
시뮬레이터가 경로를 공개했습니다!
다음은 시뮬레이터가 경로를 표시하는 방법에 대한 애니메이션입니다.

열심히 세어보니 정답이 나왔다
모든 벽을 식별하기 위해 역 추적을 한 후 필요한 최소 단계를 계산하는 데 필요한 것을 얻었습니다.

다음은 최단 경로를 자세히 살펴보는 것입니다.

2 부
알고리즘은 잊어라: 내가 GIF를 만들게!
다음을 생성하는 데 걸린 시간만큼 몇 초 만에 실행됩니다.

기쁘게도 정답이었습니다!
해냈어!!!
목표는 항상 알고리즘을 사용하는 것이 아니라 항상 해결하는 것입니다.
제 생각에는 게임을 만드는 것이 항상 이러한 퍼즐을 푸는 좋은 방법입니다!
Reference
이 문제에 관하여(산소 시스템), 우리는 이곳에서 더 많은 자료를 발견하고 링크를 클릭하여 보았다 https://dev.to/rmion/oxygen-system-2g33텍스트를 자유롭게 공유하거나 복사할 수 있습니다.하지만 이 문서의 URL은 참조 URL로 남겨 두십시오.
우수한 개발자 콘텐츠 발견에 전념
(Collection and Share based on the CC Protocol.)