본문 바로가기

분류 전체보기128

[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.
[C++] Raw String Literal 프로그래머스 스쿨 '특수문자 출력하기' 일반적으로 특수문자에 백슬러쉬(\)를 넣어서 풀었는데, 다른 사람 풀이 보다 보니 R" 함수를 사용했다. 잘 사용하지도 않았거니와 잊고있던 함수이길래 내용 구글링 후 잘 정리된 블로그를 확인하니, 공백, 특수문자, 줄 바꿈 등 내가 입력한 그대로를 ()괄호 안에 적으면 그대로 출력되는 함수이다. 단, )"을 넣으면 함수 문자열이 끝나는 것으로 판단하기 때문에 주의해야한다. 함수 사용법 예시 const char *str = "일반적인 \"특수문자\" 등\n특이한 구조를 출력"; const char *str = R"(일반적인 "특수문자" 등 특이한 구조를 출력)"; 결과는 동일 일반적인 "특수문자" 등 특이한 구조를 출력 일반적인 "특수문자" 등 특이한 구조를 출력 참.. 2023. 11. 13.
SW Expert _ 1024번 문제 https://www.swexpertacademy.com/main/learn/course/lectureProblemViewer.do #define _CRT_SECURE_NO_WARNINGS#include #include #include using namespace std; int main(){ int t; int result_cnt = 1; cin >> t; while (t--) { int row, col; int ten[10] = { 13, 25, 19, 61, 35, 49, 47, 59, 55, 11 }; // 암호해독 코드들 10진수 표현 int lastOne_row = 0; // 암호의 마지막 1로 CHECK int lastOne_col = 0; char arr[51][101] = { 0, }; .. 2018. 4. 1.