프로그래머스7 [프로그래머스 Lv.2] 기능개발(C++) 문제https://school.programmers.co.kr/learn/courses/30/lessons/42586 프로그래머스SW개발자를 위한 평가, 교육, 채용까지 Total Solution을 제공하는 개발자 성장을 위한 베이스캠프programmers.co.kr코드#include #include #include using namespace std;vector solution(vector progresses, vector speeds) { vector answer; queueq; int cnt=0; int target=100; for(int i=0;i=date){ cnt++; } else{ answer... 2025. 4. 7. [프로그래머스 Lv.2] 카펫(C++) 문제https://school.programmers.co.kr/learn/courses/30/lessons/42842 프로그래머스SW개발자를 위한 평가, 교육, 채용까지 Total Solution을 제공하는 개발자 성장을 위한 베이스캠프programmers.co.kr코드#include using namespace std;vector solution(int brown, int yellow) { vector answer; int x,y; for(int i=1;i 2025. 4. 3. [프로그래머스 Lv.1] 같은 숫자는 싫어(C++) 문제https://school.programmers.co.kr/learn/courses/30/lessons/12906 프로그래머스SW개발자를 위한 평가, 교육, 채용까지 Total Solution을 제공하는 개발자 성장을 위한 베이스캠프programmers.co.kr코드#include #include using namespace std;vector solution(vector arr) { vector answer; answer.push_back(arr[0]); int idx=0; for(int i=1;i 2025. 3. 31. [프로그래머스 Lv.1] 폰켓몬(C++) 문제https://school.programmers.co.kr/learn/courses/30/lessons/1845코드#include #include using namespace std;int solution(vector nums){ int answer = 0; mapm; for(int i=0;inums.size()/2? nums.size()/2 : m.size(); return answer;} 2025. 3. 28. [프로그래머스 Lv.1] 완주하지 못한 선수(C++) 문제https://school.programmers.co.kr/learn/courses/30/lessons/42576 프로그래머스SW개발자를 위한 평가, 교육, 채용까지 Total Solution을 제공하는 개발자 성장을 위한 베이스캠프programmers.co.kr코드#include #include #include #include using namespace std;string solution(vector participant, vector completion) { string answer = ""; mapm; for(int i=0;ifirst; return answer;} 2025. 3. 24. [프로그래머스 Lv.2] 서버 증설 횟수(C++) 문제https://school.programmers.co.kr/learn/courses/30/lessons/389479 프로그래머스SW개발자를 위한 평가, 교육, 채용까지 Total Solution을 제공하는 개발자 성장을 위한 베이스캠프programmers.co.kr코드#include #include using namespace std;int solution(vector players, int m, int k) { int answer = 0; int running=0; queueq; for(int i=0;irunning){ int newServer=required-running; running+=newServer; .. 2025. 3. 22. 이전 1 2 다음