프로그래머스 완주하지 못한 선수1 [ 프로그래머스-Lv1 / 해쉬 ] 완주하지 못한 선수 1. 문제 프로그래머스 코드 중심의 개발자 채용. 스택 기반의 포지션 매칭. 프로그래머스의 개발자 맞춤형 프로필을 등록하고, 나와 기술 궁합이 잘 맞는 기업들을 매칭 받으세요. programmers.co.kr 2. 소스코드 - 문제 자체는 단순 정렬 후 비교만으로도 해결가능하다. #include #include #include using namespace std; string solution(vector participant, vector completion) { sort(participant.begin(), participant.end()); sort(completion.begin(), completion.end()); for (int i = 0; i < completion.size(); i++) { .. 2020. 4. 3. 이전 1 다음