Skip to content

BOJ15886_내_선물을_받아줘2_실버3_권은홍 #36

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

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.

1 participant