물어, 한없이 물어

seoinking Reply 4 years 23 weeks ago
계속 질문해서 죄송합니다... direction이 0 밑으로 내려가거나 7 위로 올라가는 경우는 없앴다고 생각했는데도 여전히 틀린답입니다. 반례 알려주시면 감사하겠습니다...
withcs2 Reply 4 years 23 weeks ago
8 16 107 turn right 0 tile add 1 undo undo turn right -90 undo go back 0 turn left 315 turn left -360 turn right -90 turn left 225 turn right -180 tile subtract 1 turn left -315 tile subtract 0 tile subtract 6 tile add 5 undo turn right 90 turn left 360 turn right -315 go straight 1 go back 1 tile subtract 7 turn right -225 undo undo go straight 5 undo tile subtract 1 undo go back 0 go straight 0 tile subtract 1 tile add 7 tile add 7 undo turn right 270 go back 9 tile add 10 turn left 360 go back 1 go straight 3 turn left -135 tile add 9 undo tile add 0 turn left 225 undo tile subtract 10 turn right 315 turn left -270 undo undo go straight 2 tile add 0 tile add 7 tile add 6 turn left -225 go back 6 tile subtract 9 turn left -180 tile add 4 tile add 6 turn left -180 turn right 315 turn right -180 turn left -180 undo undo tile subtract 8 tile subtract 10 go straight 0 tile subtract 5 tile subtract 4 undo tile subtract 1 tile add 10 go straight 1 tile add 9 turn left 45 turn left -45 turn left -135 tile add 10 undo undo tile add 3 undo undo tile add 5 tile add 2 go back 2 tile subtract 8 turn left -90 turn left 135 undo turn right 315 go straight 2 go straight 0 turn left 45 turn left 90 turn left 180 go straight 7 undo turn right -360 turn left 180 go straight 3 command[i][0] 디버깅해보세요 명령 갯수는 최대 1000개 까지입니다