목록Problem Solving (223)
Life Engineering
https://programmers.co.kr/learn/courses/30/lessons/84512 코딩테스트 연습 - 5주차 사전에 알파벳 모음 'A', 'E', 'I', 'O', 'U'만을 사용하여 만들 수 있는, 길이 5 이하의 모든 단어가 수록되어 있습니다. 사전에서 첫 번째 단어는 "A"이고, 그다음은 "AA"이며, 마지막 단어는 "UUUUU"입니 programmers.co.kr #include #include #define MAX 5 using namespace std; char aeiou[MAX]={'A','E','I','O','U'}; char selected[MAX]; int answer; int order=0; void dfs(int cnt, string s, string word){..
https://programmers.co.kr/learn/courses/30/lessons/17676 >T; for (int j=0; j 내 다음 애의 시작 시간 이래도 구간에 속한 거니까 +1 해준다.
https://programmers.co.kr/learn/courses/30/lessons/42888 코딩테스트 연습 - 오픈채팅방 오픈채팅방 카카오톡 오픈채팅방에서는 친구가 아닌 사람들과 대화를 할 수 있는데, 본래 닉네임이 아닌 가상의 닉네임을 사용하여 채팅방에 들어갈 수 있다. 신입사원인 김크루는 카카오톡 오 programmers.co.kr #include #include #include #include using namespace std; vector split(string input, char delimiter) { vector answer; stringstream ss(input); string temp; while (getline(ss, temp, delimiter)) { answer.pus..
https://programmers.co.kr/learn/courses/30/lessons/60057 코딩테스트 연습 - 문자열 압축 데이터 처리 전문가가 되고 싶은 "어피치"는 문자열을 압축하는 방법에 대해 공부를 하고 있습니다. 최근에 대량의 데이터 처리를 위한 간단한 비손실 압축 방법에 대해 공부를 하고 있는데, 문 programmers.co.kr #include #include #include using namespace std; class bucket{ public: int index; string pstr; int cnt; bucket(int index, string pstr, int cnt){ this->index=index; this->pstr=pstr; this->cnt=cnt; } };..