ㅍ
-
프로그래머스 폰켓몬 _ [C++]소프트웨어전공/알고리즘 문제풀이 2021. 9. 28. 18:51
https://programmers.co.kr/learn/courses/30/lessons/1845 코딩테스트 연습 - 폰켓몬 당신은 폰켓몬을 잡기 위한 오랜 여행 끝에, 홍 박사님의 연구실에 도착했습니다. 홍 박사님은 당신에게 자신의 연구실에 있는 총 N 마리의 폰켓몬 중에서 N/2마리를 가져가도 좋다고 했습니다. programmers.co.kr 오늘 알고리즘 수업시간 퀴즈로 출제 되었다. 구현은 못했는데, 손코딩으로 어떻게 풀어야 되겠다 정도는 생각해낼 수 있었다. 여러가지 풀이가 있는데 일단 수업때 해설과 가장 유사한 코드부터 찾아보았다.