본문 바로가기

전체 글128

[프로그래머스] 2016년 _ C++ https://school.programmers.co.kr/learn/courses/30/lessons/12901 프로그래머스코드 중심의 개발자 채용. 스택 기반의 포지션 매칭. 프로그래머스의 개발자 맞춤형 프로필을 등록하고, 나와 기술 궁합이 잘 맞는 기업들을 매칭 받으세요.programmers.co.kr 흔히 나오는 윤년을 알고있기만 하면덧셈으로 편하게 풀 수 있다해당 2016년만 확인하면 되기에,각 달이 몇일로 구성되어 있는지 배열에 넣어주고,1월 1일로 시작하는 요일부터 배열에 넣어주고,1월 1일로부터 몇일 지났는지 확인 한 다음 7로 나누어주면 요일을 확인할 수 있다.1234567891011121314151617181920#include string>#include vector> using na.. 2024. 5. 13.
[프로그래머스] 기사단원의 무기 _ C++ https://school.programmers.co.kr/learn/courses/30/lessons/136798 프로그래머스코드 중심의 개발자 채용. 스택 기반의 포지션 매칭. 프로그래머스의 개발자 맞춤형 프로필을 등록하고, 나와 기술 궁합이 잘 맞는 기업들을 매칭 받으세요.programmers.co.kr 약수의 개수를 구하고 조건확인1234567891011121314151617181920212223242526272829303132333435#include string>#include vector> using namespace std; int solution(int number, int limit, int power) {    int answer = 0;        vectorint> v;     .. 2024. 5. 13.
[프로그래머스] 가장 가까운 같은 글자 _ C++ https://school.programmers.co.kr/learn/courses/30/lessons/142086 프로그래머스코드 중심의 개발자 채용. 스택 기반의 포지션 매칭. 프로그래머스의 개발자 맞춤형 프로필을 등록하고, 나와 기술 궁합이 잘 맞는 기업들을 매칭 받으세요.programmers.co.kr map 사용1234567891011121314151617181920212223242526272829#include string>#include vector>#include map> using namespace std; vectorint> solution(string s) {    vectorint> answer;        mapchar, int> m;        for(int i = 0; i .. 2024. 5. 12.
[Mac] 맥북 크롬 화면 스크롤 전체 스크린 캡쳐 맥북으로 크롬에서 보는 화면 전체를 스크롤 캡쳐를 하고 싶을 때 유용하게 사용할 수 있는 방법입니다.확장프로그램이나 별도의 프로그램 또는 사이트 접속 필요 없이 해당 화면에서 간단히 실행하여 확인 할 수 있습니다. 1. 크롬에서 해당 캡쳐할 사이트 페이지의 개발자 도구를 열어줍니다.단축키 : command + option + I 2. 개발자 도구의 검색창을 열어줍니다.단축키 : command + shift + P 3. capture 검색에서 'Capture full size screenshot' 을 찾아 클릭합니다. 4. 다운로드된 파일을 확인하여 캡쳐본을 확인합니다. 2024. 5. 10.
[visualgo.net] 자료구조와 알고리즘의 시각화 사이트 https://visualgo.net/en visualising data structures and algorithms through animation - VisuAlgoVisuAlgo is generously offered at no cost to the global Computer Science community. If you appreciate VisuAlgo, we kindly request that you spread the word about its existence to fellow Computer Science students and instructors. You can share VisuAlgo throuvisualgo.net 자료구조와 알고리즘을 코드와 함께 예제로 시각화 하여 표현해준.. 2024. 5. 10.
[프로그래머스] 폰켓몬 _ 해시 _ C++ https://school.programmers.co.kr/learn/courses/30/lessons/1845 프로그래머스코드 중심의 개발자 채용. 스택 기반의 포지션 매칭. 프로그래머스의 개발자 맞춤형 프로필을 등록하고, 나와 기술 궁합이 잘 맞는 기업들을 매칭 받으세요.programmers.co.kr map 사용#include ms 설명 링크 참고 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 #include #include #include using namespace std; int solution(vector nums) { int answer = 0; map m; sort(nums.begin(), .. 2024. 5. 10.