Skip to content

Conversation

@96Hong2
Copy link
Owner

@96Hong2 96Hong2 commented Mar 12, 2024

  1. Scanner로 N을 받아서 String[]배열 mapArr N개짜리 생성
  2. mapArr에 Scanner로 받은 지도를 split하여 넣기
  3. 바로 이전에 있던 값 String before = “E”;, 결과값 int result = 0; 생성
  4. for문을 돌며 받은 값이 W이고 이전 값이 “E”인 경우 result++
  5. result 출력

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants