본문 바로가기

Algorithm/Lecture

(8)
백준 10870 피보나치 파이썬 풀이 dp https://www.acmicpc.net/problem/10870 10870번: 피보나치 수 5 피보나치 수는 0과 1로 시작한다. 0번째 피보나치 수는 0이고, 1번째 피보나치 수는 1이다. 그 다음 2번째 부터는 바로 앞 두 피보나치 수의 합이 된다. 이를 식으로 써보면 Fn = Fn-1 + Fn-2 (n>=2)가 된다. n=17일때 까지 피보나치 수를 써보면 다음과 같다. 0, 1, 1, 2, 3, 5, 8, 13, 21, 34, 55, 89, 144, 233, 377, 610, 987, 1597 n이 주어졌을 때, n번째 피보나치 수를 구하는 www.acmicpc.net # 피보나치 + dp for문 d = {} def dp(n): if(n
알고리즘 풀이를 위한 C/C++/STL 기초 정리 - 목록 백준 강의 정리 노트 1. C언어편 2. C++ 언어편 3. STL1 4. C++ 문자열 처리 5. STL2
알고리즘 풀이를 위한 C/C++/STL 기초 정리 - C++ string 편 ## // C/C++/STL 기초 [https://docs.google.com/document/d/1xrhb-6Vm5_0zd2iImbdg_4kN2cTnY-ZSzyrFAavwABI/edit?usp=sharing](https://docs.google.com/document/d/1xrhb-6Vm5_0zd2iImbdg_4kN2cTnY-ZSzyrFAavwABI/edit?usp=sharing) Algorithm Note - 1. C/C++/STL // C/C++/STL 기초 ------------------------------------------------------------------------------------------ C언어 //1.1 포멧 문자열 int %d 10진수 %x 16진수 %o 8진수 l..
알고리즘 풀이를 위한 C/C++/STL 기초 정리 - STL(2)편 ## // C/C++/STL 기초 [https://docs.google.com/document/d/1xrhb-6Vm5_0zd2iImbdg_4kN2cTnY-ZSzyrFAavwABI/edit?usp=sharing](https://docs.google.com/document/d/1xrhb-6Vm5_0zd2iImbdg_4kN2cTnY-ZSzyrFAavwABI/edit?usp=sharing) Algorithm Note - 1. C/C++/STL // C/C++/STL 기초 ------------------------------------------------------------------------------------------ C언어 //1.1 포멧 문자열 int %d 10진수 %x 16진수 %o 8진수 l..
알고리즘 풀이를 위한 C/C++/STL 기초 정리 - STL(1) 편 ## // C/C++/STL 기초 [https://docs.google.com/document/d/1xrhb-6Vm5_0zd2iImbdg_4kN2cTnY-ZSzyrFAavwABI/edit?usp=sharing](https://docs.google.com/document/d/1xrhb-6Vm5_0zd2iImbdg_4kN2cTnY-ZSzyrFAavwABI/edit?usp=sharing) Algorithm Note - 1. C/C++/STL // C/C++/STL 기초 ------------------------------------------------------------------------------------------ C언어 //1.1 포멧 문자열 int %d 10진수 %x 16진수 %o 8진수 l..
알고리즘 풀이를 위한 C/C++/STL 기초 정리 - C++언어편 ## // C/C++/STL 기초 [https://docs.google.com/document/d/1xrhb-6Vm5_0zd2iImbdg_4kN2cTnY-ZSzyrFAavwABI/edit?usp=sharing](https://docs.google.com/document/d/1xrhb-6Vm5_0zd2iImbdg_4kN2cTnY-ZSzyrFAavwABI/edit?usp=sharing) Algorithm Note - 1. C/C++/STL // C/C++/STL 기초 ------------------------------------------------------------------------------------------ C언어 //1.1 포멧 문자열 int %d 10진수 %x 16진수 %o 8진수 l..
알고리즘 풀이를 위한 C/C++/STL 기초 정리 - C언어편 ## C/C++/STL 기초 [https://docs.google.com/document/d/1xrhb-6Vm5_0zd2iImbdg_4kN2cTnY-ZSzyrFAavwABI/edit?usp=sharing](https://docs.google.com/document/d/1xrhb-6Vm5_0zd2iImbdg_4kN2cTnY-ZSzyrFAavwABI/edit?usp=sharing) Algorithm Note - 1. C/C++/STL // C/C++/STL 기초 ------------------------------------------------------------------------------------------ C언어 //1.1 포멧 문자열 int %d 10진수 %x 16진수 %o 8진수 long..
알고리즘 C++ vs Code 환경 설정 하기. visual studio를 쓰다가 vs code로 넘어오면서, vs code에 너무 익숙해지다 보니. visual studio로 넘가기 싫었다. C++ 컴파일러 설치부터 디버깅 연동까지 다음 블로그를 참고해서 환경설정에 성공! https://webnautes.tistory.com/1158 Visual Studio Code에서 C/C++ 프로그래밍( Windows / Ubuntu) Windows와 Ubuntu 환경에 설치된 Visual Studio Code에서 C/C++을 컴파일하고 실행시키는 방법에 대해 설명합니다. 테스트에 사용한 운영체제 버전은 Windows 10과 Ubuntu 18.04입니다. Visual Studio Code 버전에.. webnautes.tistory.com vs code는 매우 ..