카테고리 없음
2023. 12. 16.
[프로그래머스] 대충 만든 자판
문제 https://school.programmers.co.kr/learn/courses/30/lessons/160586 프로그래머스 코드 중심의 개발자 채용. 스택 기반의 포지션 매칭. 프로그래머스의 개발자 맞춤형 프로필을 등록하고, 나와 기술 궁합이 잘 맞는 기업들을 매칭 받으세요. programmers.co.kr 풀이와 코드 #include #include #include using namespace std; vector solution(vector keymap, vector targets) { vector answer; map countMap; // 알파벳과 최소 횟수를 쌍으로 저장하는 map 데이터 추가 for(char i='A'; i