목록2024/07/21 (3)
파란색가운의 개발 블로그
https://www.acmicpc.net/problem/15649문제자연수 N과 M이 주어졌을 때, 아래 조건을 만족하는 길이가 M인 수열을 모두 구하는 프로그램을 작성하시오.1부터 N까지 자연수 중에서 중복 없이 M개를 고른 수열입력첫째 줄에 자연수 N과 M이 주어진다. (1 ≤ M ≤ N ≤ 8)출력한 줄에 하나씩 문제의 조건을 만족하는 수열을 출력한다. 중복되는 수열을 여러 번 출력하면 안되며, 각 수열은 공백으로 구분해서 출력해야 한다.수열은 사전 순으로 증가하는 순서로 출력해야 한다.예제 입력 1 복사3 1예제 출력 1 복사123예제 입력 2 복사4 2예제 출력 2 복사1 21 31 42 12 32 43 13 23 44 14 24 3예제 입력 3 복사4 4예제 출력 3 복사1 2 3 41 2 ..
https://school.programmers.co.kr/learn/courses/30/lessons/298515 프로그래머스코드 중심의 개발자 채용. 스택 기반의 포지션 매칭. 프로그래머스의 개발자 맞춤형 프로필을 등록하고, 나와 기술 궁합이 잘 맞는 기업들을 매칭 받으세요.programmers.co.krSELECT CONCAT(MAX(LENGTH), 'cm') AS MAX_LENGTHFROM FISH_INFO 새로 배운 것 CONCAT 함수를 쓰면 문자열을 이어줄 수 있다
https://school.programmers.co.kr/learn/courses/30/lessons/293261 프로그래머스코드 중심의 개발자 채용. 스택 기반의 포지션 매칭. 프로그래머스의 개발자 맞춤형 프로필을 등록하고, 나와 기술 궁합이 잘 맞는 기업들을 매칭 받으세요.programmers.co.kr난이도 : 중상 갑자기 문제가 좀 어렵게 다가왔다ㅏ,,, SELECT ID, FISH_NAME, INFO.LENGTH AS LENGTHFROM FISH_INFO AS INFOJOIN FISH_NAME_INFO AS NAMEON NAME.FISH_TYPE = INFO.FISH_TYPE -- 조인으로 일단 테이블 한개로 조져주고WHERE INFO.LENGTH IN (SELECT MAX(LENGTH) FR..