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
- 알고리즘
- AddRange
- c#
- IP주소
- list 사용법
- c# list
- List 제거
- C# Contains
- List 추가
- TCP/IP
- OSI 3계층
- 기본 게이트웨이
- 네트워크 용어
- 호스트
- 서브넷 마스크
- Visual Studio
- 서브넷
- Tostring 사용법
- InsertRange
- DP
- C# Find
- 호스트 주소
- list
- 백준
- Parse 사용법
- 네트워크
- List 찾기
- BFS
- C++
- List 정렬
Archives
- Today
- Total
목록DP (2)
CodeLabs

using System; class Stair { private int[] cost = new int[301]; internal int this[int index] { get { return cost[index]; } set { cost[index] = value; } } } class Program { static int t = int.Parse(Console.ReadLine()); static int[] dp = new int[301]; static Stair stair = new Stair(); static void Main(string[] args) { for (int i = 0; i < t; i++) stair[i] = int.Parse(Console.ReadLine()); dp[0] = sta..
백준/1000 ~
2023. 7. 30. 22:27

using System; class Program { static int t = int.Parse(Console.ReadLine()); static long[] dp = new long[100]; static long Fibo(int n) { dp[0] = 0; dp[1] = 1; for (int i = 2; i 0) { int n = int.Parse(Console.ReadLine()); Fibo(n); if (n == 0) Console.WriteLine("1 0"); else Console.Write($"{dp[n-1]} {dp[n]}\n"); } } }
백준/1000 ~
2023. 7. 3. 18:30