프로그래머스85 프로그래머스 - 완주하지 못한 선수 (C++) 12345678910111213141516171819202122232425262728#include #include #include #include using namespace std; string solution(vector participant, vector completion) { string answer = ""; // 두 벡터를 모두 정렬 sort(participant.begin(), participant.end()); sort(completion.begin(), completion.end()); // 두 벡터를 맨 앞 인덱스부터 하나씩 차례대로 검사 for(int i = 0; i 2020. 2. 28. 이전 1 ··· 19 20 21 22 다음