본문 바로가기
728x90

Study72

[프로그래머스] 베스트앨범 Python, C++ https://school.programmers.co.kr/learn/courses/30/lessons/42579 프로그래머스 코드 중심의 개발자 채용. 스택 기반의 포지션 매칭. 프로그래머스의 개발자 맞춤형 프로필을 등록하고, 나와 기술 궁합이 잘 맞는 기업들을 매칭 받으세요. programmers.co.kr (1) C++ #include #include #include #include #include using namespace std; bool cmp1(pair a, pair b){ return a.second > b.second; } bool cmp2(pair a, pair b){ if (a.first == b.first){ return a.second.second < b.second.second.. 2023. 8. 1.
[프로그래머스] 의상 Python, C++ https://school.programmers.co.kr/learn/courses/30/lessons/42578 프로그래머스 코드 중심의 개발자 채용. 스택 기반의 포지션 매칭. 프로그래머스의 개발자 맞춤형 프로필을 등록하고, 나와 기술 궁합이 잘 맞는 기업들을 매칭 받으세요. programmers.co.kr (1) C++ #include #include #include using namespace std; int solution(vector clothes) { int answer = 1; map m; for(int i = 0; i < clothes.size(); i++){ m[clothes[i][1]]++; } for(auto it:m){ answer *= (it.second + 1); } retur.. 2023. 8. 1.
[프로그래머스] K번째수 Python, C++ https://school.programmers.co.kr/learn/courses/30/lessons/42748 프로그래머스 코드 중심의 개발자 채용. 스택 기반의 포지션 매칭. 프로그래머스의 개발자 맞춤형 프로필을 등록하고, 나와 기술 궁합이 잘 맞는 기업들을 매칭 받으세요. programmers.co.kr (1) C++ #include #include #include #include using namespace std; vector solution(vector array, vector commands) { vector answer; for(int i = 0; i 2023. 8. 1.
[프로그래머스] 게임 맵 최단거리 Python, C++ https://school.programmers.co.kr/learn/courses/30/lessons/1844https://school.programmers.co.kr/learn/courses/30/lessons/1844https://school.programmers.co.kr/learn/courses/30/lessons/1844https://school.programmers.co.kr/learn/courses/30/lessons/1844 프로그래머스 코드 중심의 개발자 채용. 스택 기반의 포지션 매칭. 프로그래머스의 개발자 맞춤형 프로필을 등록하고, 나와 기술 궁합이 잘 맞는 기업들을 매칭 받으세요. programmers.co.kr (1) C++ #include #include #include #in.. 2023. 7. 31.
[프로그래머스] 네트워크 Python, C++ https://school.programmers.co.kr/learn/courses/30/lessons/43162?language=cpp 프로그래머스 코드 중심의 개발자 채용. 스택 기반의 포지션 매칭. 프로그래머스의 개발자 맞춤형 프로필을 등록하고, 나와 기술 궁합이 잘 맞는 기업들을 매칭 받으세요. programmers.co.kr (1) C++ #include #include #define MAX 201 using namespace std; int visited[MAX] = {0,}; void dfs(int current, int n, vector graph){ visited[current] = 1; for(int i = 0; i < n; i++){ if(visited[i] == 0 && graph[.. 2023. 7. 31.
[프로그래머스] 있었는데요 없었습니다 Mysql https://school.programmers.co.kr/learn/courses/30/lessons/59043 프로그래머스 코드 중심의 개발자 채용. 스택 기반의 포지션 매칭. 프로그래머스의 개발자 맞춤형 프로필을 등록하고, 나와 기술 궁합이 잘 맞는 기업들을 매칭 받으세요. programmers.co.kr SELECT A.ANIMAL_ID, A.NAME FROM ANIMAL_INS A INNER JOIN ANIMAL_OUTS B ON A.ANIMAL_ID = B.ANIMAL_ID WHERE A.DATETIME > B.DATETIME ORDER BY A.DATETIME 2023. 7. 29.
728x90