본문 바로가기 메뉴 바로가기

관광이 블로그

프로필사진
  • 글쓰기
  • 관리
  • 태그
  • 방명록
  • RSS

관광이 블로그

검색하기 폼
  • 감자 카테고리 (258)
    • Computer Science (2)
    • CodingInterview (2)
    • InfraStructure (2)
    • AI (24)
    • Android (37)
    • Node.js (32)
    • Network (1)
    • Spring (14)
    • Database (5)
    • Algorithm (50)
    • Github (6)
    • Security (26)
    • React (7)
    • Assembly Language (8)
    • C Language (31)
    • Python (1)
    • OS (2)
    • 환경설정 (5)
    • 기타 (0)
      • 영어 (0)
      • 프로젝트 (0)
  • 방명록

2579 (1)
[알고리즘] 2579번 백준알고리즘 계단오르기

#include #include using namespace std; int max_score(int a, int b) { return a > b ? a : b; } int main(void){ int stair_num; // 계단수 변수 int stair_score[301] = {}; // 계단수 300 int store[301] = {}; // 계단 저장 배열 변수(dp) scanf("%d", &stair_num); // 계단수 입력 // 계단 점수 입력 for (int i = 1; i = 2){ store[2] = store[1]+stair_score[2]; } for(int i=3; i

Algorithm 2018. 8. 13. 16:44
이전 1 다음
이전 다음
공지사항
  • Potato Coding IT Blog
최근에 올라온 글
최근에 달린 댓글
Total
Today
Yesterday
링크
TAG
  • Spring
  • C언어
  • 감자코딩
  • 코드엔진
  • Algorigm
  • 알고리즘
  • 스프링
  • node
  • db
  • programming
  • 복습
  • 개발하는 관광이
  • 안드로이드
  • BFS
  • MVC
  • 감자개발자
  • Controller
  • 머신러닝
  • TensorFlow
  • 텐서플로우
  • 프로그래밍
  • 리버싱
  • node.js
  • C langauge
  • 백준알고리즘
  • 학교
  • 백준
  • Android
  • 초보자를 위한 C언어 300제
  • 노드
more
«   2025/05   »
일 월 화 수 목 금 토
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
글 보관함

Blog is powered by Tistory / Designed by Tistory

티스토리툴바