Notice
Recent Posts
Recent Comments
Link
์ผ | ์ | ํ | ์ | ๋ชฉ | ๊ธ | ํ |
---|---|---|---|---|---|---|
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
- 2579
- C++
- ๋์ ํ ๋น๋ฒ
- GitHub
- ๋ฐฑ์ค
- ๋ฏธ๊ตญ์ฌํ #๋ฏธ๊ตญ์ ๊ตญ์ฌํ
- ๊ฐ๋ฐ์์ค๋น #์ปดํจํฐ๊ณตํ๊ณผ
- html #css์ ๋ฌธ #visual studio
- HTML์ ๋ฌธ
Archives
- Today
- Total
๋ชฉ๋ก๋์ ํ ๋น๋ฒ (1)
๐๊ฐ๋ฐ๊ณผ ์ผ์ (โง∇โฆ)๏พ

๐ ์๋ก ์ด ๋ฌธ์ ๋ ๋ด๊ฐ ์๊ณ ๋ฆฌ์ฆ ์คํฐ๋๋ฅผ ์ด์ฌํ ํ์ ๋ ํ์๋ ๋ฌธ์ ๋ค ๊ฐ๋จํ๋ฉด์๋ ๋์ ํ ๋น์ ๊ฐ๋ ์ ์ ์ป์ ์ ์๋ ์ข์ ๋ฌธ์ ! ์ด ๋ฌธ์ ๋ ์ฌ์ค ๋์ ๊ณํ ์ด์ธ์ ์ฌ๊ท ํจ์๋ฅผ ์ฌ์ฉํด์ ํ ์๋ ์์ง๋ง ๊ทธ๋ ๊ฒ ํผ๋ค๋ฉด ์๊ฐ ์ด๊ณผ ๋ฌธ์ ๋ก ๋ง์ ์ ์์๋ค. ๐ ๐ปโ๏ธ ํ๋ฆฐ ๋ต์ #include using namespace std; int N; int MAX; int* stair; int result; void function(int idx, int nextCnt) { if (idx == N - 1 ) { if (nextCnt == 2) return; if (MAX < result + stair[idx]) MAX = result + stair[idx] ; } else if(nextCnt != 2){ resu..
CS/๋ฐฑ์ค
2022. 2. 10. 00:36