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