Notice
Recent Posts
Recent Comments
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 | 31 |
Tags
- 프로그램
- 사물인터넷
- Python
- frontend
- C++
- java정리
- 개발
- 프로그래머스
- 프로그래밍
- 백준
- 모의 주식
- 코딩독학
- 코딩
- 자바
- 코딩테스트
- backend
- Project
- 코스닥
- 풀스택프레임워크
- 자바정리
- 자바독학
- 개발자
- 코테
- Reflex
- 빅데이터
- java
- 주가예측
- SNS
- 이웃한 칸
- 개인프로젝트
Archives
- Today
- Total
목록2024/05 (1)
Creative Code
[2579번]계단 오르기
#include #include #include #include using namespace std;int dp[301][3] = { 0 }; // n번째 계단에 m번연속 발판을 밟아 도착했을 때 얻을 수 있는 점수int stair[301]; // 계단의 점수를 저장하는 배열int solution(int N) { int answer = 0; dp[0][1] = 0; dp[0][2] = 0; dp[1][1] = stair[1]; dp[1][2] = stair[1]; for (int i = 2; i > N; int numStair = N; int index = 1; while (N > 0) { int k; cin >> k; stair[index] = k; index++; N--; } cout h..
백준 문제풀이
2024. 5. 9. 17:54