통합
뉴스
블로그
웹문서
동영상
관련성순
최신순
블로그
BFS _ 양 ( BOJ 3184)
* 양 ( BOJ 3184) https://www.acmicpc.net/problem/3184
Sol
) 뒷마당(map)에서 양이 있거나 늑대가 있는 곳을 발견하면 BFS를 수행하면서 ) { Queue queue = new LinkedList(); queue.add(
st
); chk[st.i][st.j] = true; int sheep = 0; int wolves
blog.naver.com · 2017.03.23