코딩공부 221

[프로그래머스] Lv2 루시와 엘라 찾기ORACLE

https://school.programmers.co.kr/learn/courses/30/lessons/59046 프로그래머스 코드 중심의 개발자 채용. 스택 기반의 포지션 매칭. 프로그래머스의 개발자 맞춤형 프로필을 등록하고, 나와 기술 궁합이 잘 맞는 기업들을 매칭 받으세요. programmers.co.kr 소스코드 SELECT ANIMAL_ID,NAME,SEX_UPON_INTAKE FROM ANIMAL_INS WHERE NAME IN ( 'Lucy', 'Ella', 'Pickle', 'Rogan', 'Sabrina', 'Mitty') ORDER BY ANIMAL_ID;

[프로그래머스] Lv1 특정 옵션이 포함된 자동차 리스트 구하기ORACLE

https://school.programmers.co.kr/learn/courses/30/lessons/157343 프로그래머스 코드 중심의 개발자 채용. 스택 기반의 포지션 매칭. 프로그래머스의 개발자 맞춤형 프로필을 등록하고, 나와 기술 궁합이 잘 맞는 기업들을 매칭 받으세요. programmers.co.kr 소스코드 SELECT CAR_ID,CAR_TYPE,DAILY_FEE,OPTIONS FROM CAR_RENTAL_COMPANY_CAR WHERE OPTIONS LIKE '%네비게이션%' ORDER BY CAR_ID DESC;

[프로그래머스] Lv2 조건에 부합하는 중고거래 댓글 조회하기 ORACLE

https://school.programmers.co.kr/learn/courses/30/lessons/164673 프로그래머스 코드 중심의 개발자 채용. 스택 기반의 포지션 매칭. 프로그래머스의 개발자 맞춤형 프로필을 등록하고, 나와 기술 궁합이 잘 맞는 기업들을 매칭 받으세요. programmers.co.kr 소스코드 SELECT B.TITLE , B.BOARD_ID , R.REPLY_ID,R. WRITER_ID ,R.CONTENTS, TO_CHAR(R.CREATED_DATE, 'YYYY-MM-DD') AS CREATED_DATE FROM USED_GOODS_BOARD AS B INNER JOIN USED_GOODS_REPLY AS R ON B.BOARD_ID = R.BOARD_ID WHERE B.C..

[프로그래머스] Lv2 혼자서 하는 틱택토 C#

https://school.programmers.co.kr/learn/courses/30/lessons/160585?language=csharp 프로그래머스 코드 중심의 개발자 채용. 스택 기반의 포지션 매칭. 프로그래머스의 개발자 맞춤형 프로필을 등록하고, 나와 기술 궁합이 잘 맞는 기업들을 매칭 받으세요. programmers.co.kr 소스코드 using System; public class Solution { public int solution(string[] board) { // 아무것도없으면 성공 // o,x 개수가 같으면 실패 int countO = 0; int countX = 0; for (int y = 0; y < 3; y++) { for (int x = 0; x < 3; x++) { i..

[프로그래머스] [PCCP 모의고사 #1] 1번 - 외톨이 알파벳 c++

https://school.programmers.co.kr/learn/courses/15008/lessons/121683?language=cpp 프로그래머스 코드 중심의 개발자 채용. 스택 기반의 포지션 매칭. 프로그래머스의 개발자 맞춤형 프로필을 등록하고, 나와 기술 궁합이 잘 맞는 기업들을 매칭 받으세요. programmers.co.kr 소스코드 #include #include #include #include using namespace std; string solution(string input_string) { string answer = ""; for (int i = 0; i < input_string.size(); i++) { bool same = true; char temp = input_s..

[프로그래머스]Lv1 성격 유형 검사하기 C++ (map)

https://school.programmers.co.kr/learn/courses/30/lessons/118666?language=cpp 프로그래머스 코드 중심의 개발자 채용. 스택 기반의 포지션 매칭. 프로그래머스의 개발자 맞춤형 프로필을 등록하고, 나와 기술 궁합이 잘 맞는 기업들을 매칭 받으세요. programmers.co.kr 소스코드 map은 c#과 다르게 자동정렬됨 초기화안해도 바로 insert됨 #include #include #include using namespace std; string solution(vector survey, vector choices) { string answer = ""; map m; for (int i = 0; i < choices.size(); i++) { ..

[프로그래머스]Lv1 숫자 짝꿍C++ (char 숫자 int로 변경)

https://school.programmers.co.kr/learn/courses/30/lessons/131128?language=cpp 프로그래머스 코드 중심의 개발자 채용. 스택 기반의 포지션 매칭. 프로그래머스의 개발자 맞춤형 프로필을 등록하고, 나와 기술 궁합이 잘 맞는 기업들을 매칭 받으세요. programmers.co.kr 소스코드 int temp = X[i] - '0'; Char값을 그대로 int형으로 변경가능 #include #include using namespace std; string solution(string X, string Y) { string answer = ""; int xArray[10] = {0}; int yArray[10]= { 0 }; for (int i = 0; ..

[프로그래머스]Lv1 삼총사 C++

https://school.programmers.co.kr/learn/courses/30/lessons/131705?language=cpp 프로그래머스 코드 중심의 개발자 채용. 스택 기반의 포지션 매칭. 프로그래머스의 개발자 맞춤형 프로필을 등록하고, 나와 기술 궁합이 잘 맞는 기업들을 매칭 받으세요. programmers.co.kr 소스코드 #include #include using namespace std; int solution(vector number) { int answer = 0; for (int i = 0; i < number.size(); i++) { for (int j = i+1; j < number.size(); j++) { for (int k = j+1; k < number.size..

[프로그래머스]Lv1 콜라 문제 C++

https://school.programmers.co.kr/learn/courses/30/lessons/132267?language=cpp 프로그래머스 코드 중심의 개발자 채용. 스택 기반의 포지션 매칭. 프로그래머스의 개발자 맞춤형 프로필을 등록하고, 나와 기술 궁합이 잘 맞는 기업들을 매칭 받으세요. programmers.co.kr 소스코드 #include #include using namespace std; int solution(int a, int b, int n) { int answer = 0; while (n >= a ) { int div = (n / a) * b; int mod = n % a; n = div + mod; answer += div; } return answer; }

[프로그래머스]Lv1 옹알이 (2) C++

https://school.programmers.co.kr/learn/courses/30/lessons/133499?language=cpp 프로그래머스 코드 중심의 개발자 채용. 스택 기반의 포지션 매칭. 프로그래머스의 개발자 맞춤형 프로필을 등록하고, 나와 기술 궁합이 잘 맞는 기업들을 매칭 받으세요. programmers.co.kr 소스코드 #include using namespace std; int solution(vector babbling) { int answer = 0; vector defaultB = { "aya", "ye", "woo", "ma" }; for (int i = 0; i < babbling.size(); i++) { int count = 1; int check = 0; for ..