{"id":27476,"date":"2024-10-27T14:11:58","date_gmt":"2024-10-27T14:11:58","guid":{"rendered":"http:\/\/atmokpo.com\/w\/?p=27476"},"modified":"2024-11-26T07:17:56","modified_gmt":"2024-11-26T07:17:56","slug":"c-%ec%bd%94%eb%94%a9%ed%85%8c%ec%8a%a4%ed%8a%b8-%ea%b0%95%ec%a2%8c-%eb%8f%99%ec%a0%81-%ea%b3%84%ed%9a%8d%eb%b2%95-%ec%95%8c%ec%95%84%eb%b3%b4%ea%b8%b0","status":"publish","type":"post","link":"https:\/\/atmokpo.com\/w\/27476\/","title":{"rendered":"C# \ucf54\ub529\ud14c\uc2a4\ud2b8 \uac15\uc88c, \ub3d9\uc801 \uacc4\ud68d\ubc95 \uc54c\uc544\ubcf4\uae30"},"content":{"rendered":"<p>\ucf54\ub529\ud14c\uc2a4\ud2b8\uc5d0\uc11c \uc54c\uace0\ub9ac\uc998 \ubb38\uc81c\ub97c \ud6a8\uacfc\uc801\uc73c\ub85c \ud574\uacb0\ud558\ub294 \ubc29\ubc95 \uc911 \ud558\ub098\ub294 \ub3d9\uc801 \uacc4\ud68d\ubc95(Dynamic Programming, DP)\uc785\ub2c8\ub2e4. \ub3d9\uc801 \uacc4\ud68d\ubc95\uc740 \ubcf5\uc7a1\ud55c \ubb38\uc81c\ub97c \ub354 \uac04\ub2e8\ud55c \ud558\uc704 \ubb38\uc81c\ub85c \ub098\ub204\uc5b4 \ud574\uacb0\ud558\ub294 \uc811\uadfc \ubc29\uc2dd\uc73c\ub85c, \ucd5c\uc801\ud654 \ubb38\uc81c\ub97c \ud574\uacb0\ud558\uace0 \uacc4\uc0b0\uc744 \uc904\uc774\ub294 \ub370 \ub9e4\uc6b0 \uc720\uc6a9\ud569\ub2c8\ub2e4. \uc774\ubc88 \uac15\uc88c\uc5d0\uc11c\ub294 \ub3d9\uc801 \uacc4\ud68d\ubc95\uc758 \uae30\ucd08\ubd80\ud130 \uc2dc\uc791\ud558\uc5ec \uc2e4\uc81c \ubb38\uc81c\ub97c \ud1b5\ud574 \uc774\ub860\uc744 \uc0b4\ud3b4\ubcf4\uace0, C# \ud504\ub85c\uadf8\ub798\ubc0d \uc5b8\uc5b4\ub97c \uc0ac\uc6a9\ud558\uc5ec \ubb38\uc81c\ub97c \ud574\uacb0\ud558\ub294 \ubc29\ubc95\uc744 \ub2e8\uacc4\ubcc4\ub85c \uc124\uba85\ud558\uaca0\uc2b5\ub2c8\ub2e4.<\/p>\n<h2>\ub3d9\uc801 \uacc4\ud68d\ubc95\uc758 \uc774\ud574<\/h2>\n<p>\ub3d9\uc801 \uacc4\ud68d\ubc95\uc740 \uae30\ubcf8\uc801\uc73c\ub85c \ub450 \uac00\uc9c0 \uc911\uc694\ud55c \uc131\uc9c8\uc778 <strong>\ucd5c\uc801 \ubd80\ubd84 \uad6c\uc870<\/strong>\uc640 <strong>\uc911\ubcf5 \uc30d \ubb38\uc81c<\/strong>\ub97c \ud65c\uc6a9\ud569\ub2c8\ub2e4. \ucd5c\uc801 \ubd80\ubd84 \uad6c\uc870\ub294 \ubb38\uc81c\uc758 \ucd5c\uc801 \ud574\uacb0 \ubc29\ubc95\uc774 \uadf8 \ud558\uc704 \ubb38\uc81c\uc758 \ucd5c\uc801 \ud574\uacb0 \ubc29\ubc95\uc73c\ub85c \uad6c\uc131\ub41c\ub2e4\ub294 \uac83\uc744 \uc758\ubbf8\ud569\ub2c8\ub2e4. \uc911\ubcf5 \uc30d \ubb38\uc81c\ub294 \ub3d9\uc77c\ud55c \ud558\uc704 \ubb38\uc81c\ub97c \uc5ec\ub7ec \ubc88 \ud574\uacb0\ud558\ub294 \ub300\uc2e0, \uadf8 \uacb0\uacfc\ub97c \uc800\uc7a5\ud558\uc5ec \ud544\uc694\ud560 \ub54c \uc7ac\uc0ac\uc6a9\ud558\ub294 \uac83\uc785\ub2c8\ub2e4. \uc774\ub97c \ud1b5\ud574 \ud6a8\uc728\uc131\uc744 \ud68d\uae30\uc801\uc73c\ub85c \ub192\uc77c \uc218 \uc788\uc2b5\ub2c8\ub2e4.<\/p>\n<h3>\ub3d9\uc801 \uacc4\ud68d\ubc95\uc758 \uc801\uc6a9 \uc608\uc2dc<\/h3>\n<p>\ub3d9\uc801 \uacc4\ud68d\ubc95\uc740 \ub2e4\uc74c\uacfc \uac19\uc740 \ubb38\uc81c\uc5d0 \uc0ac\uc6a9\ub429\ub2c8\ub2e4:<\/p>\n<ul>\n<li>\ud53c\ubcf4\ub098\uce58 \uc218\uc5f4 \uacc4\uc0b0<\/li>\n<li>\ucd5c\uc7a5 \uacf5\ud1b5 \ubd80\ubd84 \uc218\uc5f4(longest common subsequence)<\/li>\n<li>\ucd5c\uc18c \uacbd\ub85c \ubb38\uc81c<\/li>\n<li>0-1 \ubc30\ub0ad \ubb38\uc81c<\/li>\n<li>\ub3d9\uc801 \ud589\ub82c \uacf1\uc148<\/li>\n<\/ul>\n<h2>\ubb38\uc81c \uc18c\uac1c: 0-1 \ubc30\ub0ad \ubb38\uc81c<\/h2>\n<p>\uc774\ubc88 \uac15\uc88c\uc5d0\uc11c\ub294 <strong>0-1 \ubc30\ub0ad \ubb38\uc81c<\/strong>\ub97c \ud1b5\ud574 \ub3d9\uc801 \uacc4\ud68d\ubc95\uc744 \uc801\uc6a9\ud574 \ubcf4\uaca0\uc2b5\ub2c8\ub2e4. \ubb38\uc81c\ub294 \ub2e4\uc74c\uacfc \uac19\uc774 \uc124\uba85\ub429\ub2c8\ub2e4:<\/p>\n<blockquote>\n<p>\ubb34\uac8c\uc758 \uc81c\ud55c\uc774 \uc788\ub294 \ubc30\ub0ad\uc774 \uc788\uc2b5\ub2c8\ub2e4. \uac01 \uc544\uc774\ud15c\uc740 \uace0\uc720\ud55c \ubb34\uac8c\uc640 \uac00\uce58\ub97c \uac00\uc9d1\ub2c8\ub2e4. \uac01 \uc544\uc774\ud15c\uc740 0\uac1c \ub610\ub294 1\uac1c\ub9cc \uc0ac\uc6a9\ud560 \uc218 \uc788\uc73c\uba70, \ubc30\ub0ad\uc5d0 \ub2f4\uc744 \uc218 \uc788\ub294 \ucd5c\ub300 \uac00\uce58\ub294 \ubb34\uc5c7\uc778\uc9c0 \uacc4\uc0b0\ud558\uc138\uc694.<\/p>\n<\/blockquote>\n<p>\uc608\uc2dc\ub85c \ub2e4\uc74c\uacfc \uac19\uc740 \uc544\uc774\ud15c \ubaa9\ub85d\uc774 \uc788\ub2e4\uace0 \uac00\uc815\ud574 \ubd05\uc2dc\ub2e4:<\/p>\n<table>\n<thead>\n<tr>\n<th>\uc544\uc774\ud15c<\/th>\n<th>\ubb34\uac8c<\/th>\n<th>\uac00\uce58<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td>\uc544\uc774\ud15c 1<\/td>\n<td>1<\/td>\n<td>1<\/td>\n<\/tr>\n<tr>\n<td>\uc544\uc774\ud15c 2<\/td>\n<td>2<\/td>\n<td>6<\/td>\n<\/tr>\n<tr>\n<td>\uc544\uc774\ud15c 3<\/td>\n<td>3<\/td>\n<td>10<\/td>\n<\/tr>\n<tr>\n<td>\uc544\uc774\ud15c 4<\/td>\n<td>5<\/td>\n<td>16<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>\ubc30\ub0ad\uc758 \ucd5c\ub300 \ubb34\uac8c\ub294 <strong>7<\/strong>\uc785\ub2c8\ub2e4. \uc774 \uacbd\uc6b0 \ucd5c\ub300 \uac00\uce58\ub294 \uc5bc\ub9c8\uc77c\uae4c\uc694?<\/p>\n<h2>\ubb38\uc81c \ud480\uc774 \uacfc\uc815<\/h2>\n<h3>1\ub2e8\uacc4: \ubb38\uc81c \uc815\uc758<\/h3>\n<p>\uc6b0\ub9ac\ub294 \uc7ac\uadc0\uc801\uc778 \uc0ac\uace0 \ubc29\uc2dd\uc73c\ub85c \ubb38\uc81c\ub97c \ud574\uacb0\ud558\ub824\uace0 \ud560 \uc218 \uc788\uc9c0\ub9cc, \uc774\ub294 \uc911\ubcf5\ub41c \uacc4\uc0b0\uc744 \uc57c\uae30\ud560 \uc218 \uc788\uc2b5\ub2c8\ub2e4. \ub530\ub77c\uc11c, \ub3d9\uc801 \uacc4\ud68d\ubc95\uc744 \uc0ac\uc6a9\ud558\uc5ec \ud558\uc704 \ubb38\uc81c\uc758 \ud574\uacb0\ucc45\uc744 \uc800\uc7a5\ud558\uace0 \uc7ac\uc0ac\uc6a9\ud558\ub294 \ubc29\uc2dd\uc73c\ub85c \uc811\uadfc\ud569\ub2c8\ub2e4.<\/p>\n<h3>2\ub2e8\uacc4: \uc0c1\ud0dc \uc815\uc758<\/h3>\n<p>\uba3c\uc800 \uc6b0\ub9ac\uac00 \ud574\uacb0\ud574\uc57c \ud560 \ubb38\uc81c\ub97c \uc815\uc758\ud569\ub2c8\ub2e4. <strong>dp[i][w]<\/strong>\ub97c \uc0ac\uc6a9\ud558\uc5ec \uccab i\uac1c\uc758 \uc544\uc774\ud15c\uc744 \uace0\ub824\ud588\uc744 \ub54c, \ubb34\uac8c w\ub97c \ucd08\uacfc\ud558\uc9c0 \uc54a\uc73c\uba74\uc11c \ucd5c\ub300 \uac00\uce58\ub97c \uc800\uc7a5\ud569\ub2c8\ub2e4. i\ub294 \uc544\uc774\ud15c\uc758 \uc778\ub371\uc2a4, w\ub294 \ubc30\ub0ad\uc758 \ubb34\uac8c\uc785\ub2c8\ub2e4.<\/p>\n<h3>3\ub2e8\uacc4: \uc0c1\ud0dc \uc804\uc774 \ubc29\uc815\uc2dd<\/h3>\n<p>\uc774\uc81c \uc0c1\ud0dc \uc804\uc774 \ubc29\uc815\uc2dd\uc744 \uc815\uc758\ud574\uc57c \ud569\ub2c8\ub2e4. i \ubc88\uc9f8 \uc544\uc774\ud15c\uc744 \ud3ec\ud568\ud558\ub294 \uacbd\uc6b0\uc640 \ud3ec\ud568\ud558\uc9c0 \uc54a\ub294 \uacbd\uc6b0\ub97c \ub098\ub204\uc5b4 \uc0dd\uac01\ud569\ub2c8\ub2e4.<\/p>\n<ul>\n<li>\uc544\uc774\ud15c i\ub97c \ud3ec\ud568\ud558\uc9c0 \uc54a\uc744 \uacbd\uc6b0: <strong>dp[i][w] = dp[i-1][w]<\/strong><\/li>\n<li>\uc544\uc774\ud15c i\ub97c \ud3ec\ud568\ud560 \uacbd\uc6b0(\uc774\ub54c \uc544\uc774\ud15c\uc758 \ubb34\uac8c\uac00 w\ub97c \ub118\uc5b4\uc11c\ub294 \uc548 \ub428): <strong>dp[i][w] = dp[i-1][w &#8211; weight[i]] + value[i]<\/strong><\/li>\n<\/ul>\n<p>\ucd5c\uc885\uc801\uc73c\ub85c, \ub450 \uacbd\uc6b0 \uc911 \ucd5c\ub300\uac12\uc744 \uc120\ud0dd\ud569\ub2c8\ub2e4:<\/p>\n<pre>\ndp[i][w] = max(dp[i-1][w], dp[i-1][w - weight[i]] + value[i])\n<\/pre>\n<h3>4\ub2e8\uacc4: \ucd08\uae30 \uc870\uac74 \uc815\uc758<\/h3>\n<p>\uae30\ubcf8\uc801\uc73c\ub85c \uc544\uc774\ud15c\uc774 \uc5c6\uac70\ub098 \ubb34\uac8c\uac00 0\uc778 \uacbd\uc6b0\uc5d0\ub294 \ucd5c\ub300 \uac00\uce58\ub294 0\uc785\ub2c8\ub2e4. \ub530\ub77c\uc11c \ub2e4\uc74c\uacfc \uac19\uc774 \ucd08\uae30\ud654\ud569\ub2c8\ub2e4:<\/p>\n<pre>\nfor w in range(max_weight + 1):\n    dp[0][w] = 0\nfor i in range(n + 1):\n    dp[i][0] = 0\n<\/pre>\n<h3>5\ub2e8\uacc4: \ucd5c\uc885 \uc194\ub8e8\uc158<\/h3>\n<p>\ubaa8\ub4e0 \ud558\uc704 \ubb38\uc81c\ub97c \ud574\uacb0\ud55c \ud6c4, dp \ubc30\uc5f4\uc758 \ub9c8\uc9c0\ub9c9 \uc694\uc18c\ub294 \ucd5c\uc801\uc758 \ud574\ub97c \ub098\ud0c0\ub0c5\ub2c8\ub2e4. \uc774\ub97c \ucd9c\ub825\ud558\uc5ec \uacb0\uacfc\ub97c \ud655\uc778\ud569\ub2c8\ub2e4.<\/p>\n<h3>6\ub2e8\uacc4: C# \ucf54\ub4dc \uad6c\ud604<\/h3>\n<pre><code class=\"language-csharp\">\nusing System;\n\nclass Program\n{\n    static void Main(string[] args)\n    {\n        int[] weights = new int[] { 1, 2, 3, 5 };\n        int[] values = new int[] { 1, 6, 10, 16 };\n        int maxWeight = 7;\n        int n = weights.Length;\n\n        int[,] dp = new int[n + 1, maxWeight + 1];\n\n        \/\/ \ucd08\uae30\ud654\n        for (int w = 0; w &lt;= maxWeight; w++)\n            dp[0, w] = 0;\n        \n        for (int i = 0; i &lt;= n; i++)\n            dp[i, 0] = 0;\n\n        \/\/ \ub3d9\uc801 \uacc4\ud68d\ubc95 \uc801\uc6a9\n        for (int i = 1; i &lt;= n; i++)\n        {\n            for (int w = 1; w &lt;= maxWeight; w++)\n            {\n                if (weights[i - 1] &lt;= w)\n                    dp[i, w] = Math.Max(dp[i - 1, w], dp[i - 1, w - weights[i - 1]] + values[i - 1]);\n                else\n                    dp[i, w] = dp[i - 1, w];\n            }\n        }\n\n        Console.WriteLine(\"\ucd5c\ub300 \uac00\uce58: \" + dp[n, maxWeight]);\n    }\n}\n<\/code><\/pre>\n<h2>\uacb0\uacfc \ud655\uc778<\/h2>\n<p>\uc704 \ucf54\ub4dc\ub97c \uc2e4\ud589\ud558\uba74 \uc8fc\uc5b4\uc9c4 \ubc30\ub0ad \ubb38\uc81c\uc5d0 \ub300\ud55c \ucd5c\ub300 \uac00\uce58\ub97c \ucd9c\ub825\ud558\uac8c \ub429\ub2c8\ub2e4. \uc774 \uacbd\uc6b0 \uacb0\uacfc\ub294 <strong>17<\/strong>\uc774 \ub429\ub2c8\ub2e4. \uc774\ub294 \uc544\uc774\ud15c 2\uc640 \uc544\uc774\ud15c 3\uc744 \uc120\ud0dd\ud558\uc5ec \ucd5c\ub300 \ubb34\uac8c\ub97c \ucd08\uacfc\ud558\uc9c0 \uc54a\uc73c\uba74\uc11c \ucd5c\ub300 \uac00\uce58\ub97c \uc5bb\uc744 \uc218 \uc788\uc74c\uc744 \uc758\ubbf8\ud569\ub2c8\ub2e4.<\/p>\n<h2>\uacb0\ub860<\/h2>\n<p>\uc774\ubc88 \uac15\uc88c\ub97c \ud1b5\ud574 \ub3d9\uc801 \uacc4\ud68d\ubc95\uc758 \uae30\ucd08\uc640 0-1 \ubc30\ub0ad \ubb38\uc81c\ub97c \ud574\uacb0\ud558\ub294 \uacfc\uc815\uc744 \uc0b4\ud3b4\ubcf4\uc558\uc2b5\ub2c8\ub2e4. \ub3d9\uc801 \uacc4\ud68d\ubc95\uc740 \ub9ce\uc740 \uc54c\uace0\ub9ac\uc998 \ubb38\uc81c\uc5d0\uc11c \ud65c\uc6a9\ub420 \uc218 \uc788\uc73c\uba70, \ubb38\uc81c \ud574\uacb0 \ub2a5\ub825\uc744 \ud0a4\uc6b0\ub294 \ub370 \ud070 \ub3c4\uc6c0\uc744 \uc904 \uac83\uc785\ub2c8\ub2e4. \uc5f0\uc2b5\uc744 \ud1b5\ud574 \ub2e4\uc591\ud55c \ubb38\uc81c\ub97c \ud574\uacb0\ud574 \ubcf4\uc2dc\uace0, \ub354 \uae4a\uc774 \uc788\ub294 \uc774\ud574\ub97c \uc313\uc73c\uc2dc\uae38 \ubc14\ub78d\ub2c8\ub2e4.<\/p>\n<p>\ub2e4\uc74c \uac15\uc88c\uc5d0\uc11c\ub294 \ub354 \ub2e4\uc591\ud55c \ub3d9\uc801 \uacc4\ud68d\ubc95 \uc751\uc6a9\ubb38\uc81c\ub97c \ub2e4\ub8e8\uc5b4 \ubcf4\uaca0\uc2b5\ub2c8\ub2e4. \uac10\uc0ac\ud569\ub2c8\ub2e4!<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\ucf54\ub529\ud14c\uc2a4\ud2b8\uc5d0\uc11c \uc54c\uace0\ub9ac\uc998 \ubb38\uc81c\ub97c \ud6a8\uacfc\uc801\uc73c\ub85c \ud574\uacb0\ud558\ub294 \ubc29\ubc95 \uc911 \ud558\ub098\ub294 \ub3d9\uc801 \uacc4\ud68d\ubc95(Dynamic Programming, DP)\uc785\ub2c8\ub2e4. \ub3d9\uc801 \uacc4\ud68d\ubc95\uc740 \ubcf5\uc7a1\ud55c \ubb38\uc81c\ub97c \ub354 \uac04\ub2e8\ud55c \ud558\uc704 \ubb38\uc81c\ub85c \ub098\ub204\uc5b4 \ud574\uacb0\ud558\ub294 \uc811\uadfc \ubc29\uc2dd\uc73c\ub85c, \ucd5c\uc801\ud654 \ubb38\uc81c\ub97c \ud574\uacb0\ud558\uace0 \uacc4\uc0b0\uc744 \uc904\uc774\ub294 \ub370 \ub9e4\uc6b0 \uc720\uc6a9\ud569\ub2c8\ub2e4. \uc774\ubc88 \uac15\uc88c\uc5d0\uc11c\ub294 \ub3d9\uc801 \uacc4\ud68d\ubc95\uc758 \uae30\ucd08\ubd80\ud130 \uc2dc\uc791\ud558\uc5ec \uc2e4\uc81c \ubb38\uc81c\ub97c \ud1b5\ud574 \uc774\ub860\uc744 \uc0b4\ud3b4\ubcf4\uace0, C# \ud504\ub85c\uadf8\ub798\ubc0d \uc5b8\uc5b4\ub97c \uc0ac\uc6a9\ud558\uc5ec \ubb38\uc81c\ub97c \ud574\uacb0\ud558\ub294 \ubc29\ubc95\uc744 \ub2e8\uacc4\ubcc4\ub85c \uc124\uba85\ud558\uaca0\uc2b5\ub2c8\ub2e4. \ub3d9\uc801 \uacc4\ud68d\ubc95\uc758 \uc774\ud574 &hellip; <a href=\"https:\/\/atmokpo.com\/w\/27476\/\" class=\"more-link\">\ub354 \ubcf4\uae30<span class=\"screen-reader-text\"> &#8220;C# \ucf54\ub529\ud14c\uc2a4\ud2b8 \uac15\uc88c, \ub3d9\uc801 \uacc4\ud68d\ubc95 \uc54c\uc544\ubcf4\uae30&#8221;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[24],"tags":[],"class_list":["post-27476","post","type-post","status-publish","format-standard","hentry","category-c--"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v26.2 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>C# \ucf54\ub529\ud14c\uc2a4\ud2b8 \uac15\uc88c, \ub3d9\uc801 \uacc4\ud68d\ubc95 \uc54c\uc544\ubcf4\uae30 - \ub77c\uc774\ube0c\uc2a4\ub9c8\ud2b8<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/atmokpo.com\/w\/27476\/\" \/>\n<meta property=\"og:locale\" content=\"ko_KR\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"C# \ucf54\ub529\ud14c\uc2a4\ud2b8 \uac15\uc88c, \ub3d9\uc801 \uacc4\ud68d\ubc95 \uc54c\uc544\ubcf4\uae30 - \ub77c\uc774\ube0c\uc2a4\ub9c8\ud2b8\" \/>\n<meta property=\"og:description\" content=\"\ucf54\ub529\ud14c\uc2a4\ud2b8\uc5d0\uc11c \uc54c\uace0\ub9ac\uc998 \ubb38\uc81c\ub97c \ud6a8\uacfc\uc801\uc73c\ub85c \ud574\uacb0\ud558\ub294 \ubc29\ubc95 \uc911 \ud558\ub098\ub294 \ub3d9\uc801 \uacc4\ud68d\ubc95(Dynamic Programming, DP)\uc785\ub2c8\ub2e4. \ub3d9\uc801 \uacc4\ud68d\ubc95\uc740 \ubcf5\uc7a1\ud55c \ubb38\uc81c\ub97c \ub354 \uac04\ub2e8\ud55c \ud558\uc704 \ubb38\uc81c\ub85c \ub098\ub204\uc5b4 \ud574\uacb0\ud558\ub294 \uc811\uadfc \ubc29\uc2dd\uc73c\ub85c, \ucd5c\uc801\ud654 \ubb38\uc81c\ub97c \ud574\uacb0\ud558\uace0 \uacc4\uc0b0\uc744 \uc904\uc774\ub294 \ub370 \ub9e4\uc6b0 \uc720\uc6a9\ud569\ub2c8\ub2e4. \uc774\ubc88 \uac15\uc88c\uc5d0\uc11c\ub294 \ub3d9\uc801 \uacc4\ud68d\ubc95\uc758 \uae30\ucd08\ubd80\ud130 \uc2dc\uc791\ud558\uc5ec \uc2e4\uc81c \ubb38\uc81c\ub97c \ud1b5\ud574 \uc774\ub860\uc744 \uc0b4\ud3b4\ubcf4\uace0, C# \ud504\ub85c\uadf8\ub798\ubc0d \uc5b8\uc5b4\ub97c \uc0ac\uc6a9\ud558\uc5ec \ubb38\uc81c\ub97c \ud574\uacb0\ud558\ub294 \ubc29\ubc95\uc744 \ub2e8\uacc4\ubcc4\ub85c \uc124\uba85\ud558\uaca0\uc2b5\ub2c8\ub2e4. \ub3d9\uc801 \uacc4\ud68d\ubc95\uc758 \uc774\ud574 &hellip; \ub354 \ubcf4\uae30 &quot;C# \ucf54\ub529\ud14c\uc2a4\ud2b8 \uac15\uc88c, \ub3d9\uc801 \uacc4\ud68d\ubc95 \uc54c\uc544\ubcf4\uae30&quot;\" \/>\n<meta property=\"og:url\" content=\"https:\/\/atmokpo.com\/w\/27476\/\" \/>\n<meta property=\"og:site_name\" content=\"\ub77c\uc774\ube0c\uc2a4\ub9c8\ud2b8\" \/>\n<meta property=\"article:published_time\" content=\"2024-10-27T14:11:58+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2024-11-26T07:17:56+00:00\" \/>\n<meta name=\"author\" content=\"root\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@bebubo4\" \/>\n<meta name=\"twitter:site\" content=\"@bebubo4\" \/>\n<meta name=\"twitter:label1\" content=\"\uae00\uc4f4\uc774\" \/>\n\t<meta name=\"twitter:data1\" content=\"root\" \/>\n\t<meta name=\"twitter:label2\" content=\"\uc608\uc0c1 \ub418\ub294 \ud310\ub3c5 \uc2dc\uac04\" \/>\n\t<meta name=\"twitter:data2\" content=\"1\ubd84\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/atmokpo.com\/w\/27476\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/atmokpo.com\/w\/27476\/\"},\"author\":{\"name\":\"root\",\"@id\":\"https:\/\/atmokpo.com\/w\/#\/schema\/person\/91b6b3b138fbba0efb4ae64b1abd81d7\"},\"headline\":\"C# \ucf54\ub529\ud14c\uc2a4\ud2b8 \uac15\uc88c, \ub3d9\uc801 \uacc4\ud68d\ubc95 \uc54c\uc544\ubcf4\uae30\",\"datePublished\":\"2024-10-27T14:11:58+00:00\",\"dateModified\":\"2024-11-26T07:17:56+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/atmokpo.com\/w\/27476\/\"},\"wordCount\":42,\"publisher\":{\"@id\":\"https:\/\/atmokpo.com\/w\/#organization\"},\"articleSection\":[\"C# \ucf54\ub529\ud14c\uc2a4\ud2b8 \uac15\uc88c\"],\"inLanguage\":\"ko-KR\"},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/atmokpo.com\/w\/27476\/\",\"url\":\"https:\/\/atmokpo.com\/w\/27476\/\",\"name\":\"C# \ucf54\ub529\ud14c\uc2a4\ud2b8 \uac15\uc88c, \ub3d9\uc801 \uacc4\ud68d\ubc95 \uc54c\uc544\ubcf4\uae30 - \ub77c\uc774\ube0c\uc2a4\ub9c8\ud2b8\",\"isPartOf\":{\"@id\":\"https:\/\/atmokpo.com\/w\/#website\"},\"datePublished\":\"2024-10-27T14:11:58+00:00\",\"dateModified\":\"2024-11-26T07:17:56+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/atmokpo.com\/w\/27476\/#breadcrumb\"},\"inLanguage\":\"ko-KR\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/atmokpo.com\/w\/27476\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/atmokpo.com\/w\/27476\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\ud648\",\"item\":\"https:\/\/atmokpo.com\/w\/en\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"C# \ucf54\ub529\ud14c\uc2a4\ud2b8 \uac15\uc88c, \ub3d9\uc801 \uacc4\ud68d\ubc95 \uc54c\uc544\ubcf4\uae30\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/atmokpo.com\/w\/#website\",\"url\":\"https:\/\/atmokpo.com\/w\/\",\"name\":\"\ub77c\uc774\ube0c\uc2a4\ub9c8\ud2b8\",\"description\":\"\",\"publisher\":{\"@id\":\"https:\/\/atmokpo.com\/w\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/atmokpo.com\/w\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"ko-KR\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/atmokpo.com\/w\/#organization\",\"name\":\"\ub77c\uc774\ube0c\uc2a4\ub9c8\ud2b8\",\"url\":\"https:\/\/atmokpo.com\/w\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"ko-KR\",\"@id\":\"https:\/\/atmokpo.com\/w\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/atmokpo.com\/w\/wp-content\/uploads\/2024\/11\/logo.png\",\"contentUrl\":\"https:\/\/atmokpo.com\/w\/wp-content\/uploads\/2024\/11\/logo.png\",\"width\":400,\"height\":400,\"caption\":\"\ub77c\uc774\ube0c\uc2a4\ub9c8\ud2b8\"},\"image\":{\"@id\":\"https:\/\/atmokpo.com\/w\/#\/schema\/logo\/image\/\"},\"sameAs\":[\"https:\/\/x.com\/bebubo4\"]},{\"@type\":\"Person\",\"@id\":\"https:\/\/atmokpo.com\/w\/#\/schema\/person\/91b6b3b138fbba0efb4ae64b1abd81d7\",\"name\":\"root\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"ko-KR\",\"@id\":\"https:\/\/atmokpo.com\/w\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/708197b41fc6435a7ce22d951b25d4a47e9e904270cb1f04682d4f025066f80c?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/708197b41fc6435a7ce22d951b25d4a47e9e904270cb1f04682d4f025066f80c?s=96&d=mm&r=g\",\"caption\":\"root\"},\"sameAs\":[\"http:\/\/atmokpo.com\/w\"],\"url\":\"https:\/\/atmokpo.com\/w\/author\/root\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"C# \ucf54\ub529\ud14c\uc2a4\ud2b8 \uac15\uc88c, \ub3d9\uc801 \uacc4\ud68d\ubc95 \uc54c\uc544\ubcf4\uae30 - \ub77c\uc774\ube0c\uc2a4\ub9c8\ud2b8","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/atmokpo.com\/w\/27476\/","og_locale":"ko_KR","og_type":"article","og_title":"C# \ucf54\ub529\ud14c\uc2a4\ud2b8 \uac15\uc88c, \ub3d9\uc801 \uacc4\ud68d\ubc95 \uc54c\uc544\ubcf4\uae30 - \ub77c\uc774\ube0c\uc2a4\ub9c8\ud2b8","og_description":"\ucf54\ub529\ud14c\uc2a4\ud2b8\uc5d0\uc11c \uc54c\uace0\ub9ac\uc998 \ubb38\uc81c\ub97c \ud6a8\uacfc\uc801\uc73c\ub85c \ud574\uacb0\ud558\ub294 \ubc29\ubc95 \uc911 \ud558\ub098\ub294 \ub3d9\uc801 \uacc4\ud68d\ubc95(Dynamic Programming, DP)\uc785\ub2c8\ub2e4. \ub3d9\uc801 \uacc4\ud68d\ubc95\uc740 \ubcf5\uc7a1\ud55c \ubb38\uc81c\ub97c \ub354 \uac04\ub2e8\ud55c \ud558\uc704 \ubb38\uc81c\ub85c \ub098\ub204\uc5b4 \ud574\uacb0\ud558\ub294 \uc811\uadfc \ubc29\uc2dd\uc73c\ub85c, \ucd5c\uc801\ud654 \ubb38\uc81c\ub97c \ud574\uacb0\ud558\uace0 \uacc4\uc0b0\uc744 \uc904\uc774\ub294 \ub370 \ub9e4\uc6b0 \uc720\uc6a9\ud569\ub2c8\ub2e4. \uc774\ubc88 \uac15\uc88c\uc5d0\uc11c\ub294 \ub3d9\uc801 \uacc4\ud68d\ubc95\uc758 \uae30\ucd08\ubd80\ud130 \uc2dc\uc791\ud558\uc5ec \uc2e4\uc81c \ubb38\uc81c\ub97c \ud1b5\ud574 \uc774\ub860\uc744 \uc0b4\ud3b4\ubcf4\uace0, C# \ud504\ub85c\uadf8\ub798\ubc0d \uc5b8\uc5b4\ub97c \uc0ac\uc6a9\ud558\uc5ec \ubb38\uc81c\ub97c \ud574\uacb0\ud558\ub294 \ubc29\ubc95\uc744 \ub2e8\uacc4\ubcc4\ub85c \uc124\uba85\ud558\uaca0\uc2b5\ub2c8\ub2e4. \ub3d9\uc801 \uacc4\ud68d\ubc95\uc758 \uc774\ud574 &hellip; \ub354 \ubcf4\uae30 \"C# \ucf54\ub529\ud14c\uc2a4\ud2b8 \uac15\uc88c, \ub3d9\uc801 \uacc4\ud68d\ubc95 \uc54c\uc544\ubcf4\uae30\"","og_url":"https:\/\/atmokpo.com\/w\/27476\/","og_site_name":"\ub77c\uc774\ube0c\uc2a4\ub9c8\ud2b8","article_published_time":"2024-10-27T14:11:58+00:00","article_modified_time":"2024-11-26T07:17:56+00:00","author":"root","twitter_card":"summary_large_image","twitter_creator":"@bebubo4","twitter_site":"@bebubo4","twitter_misc":{"\uae00\uc4f4\uc774":"root","\uc608\uc0c1 \ub418\ub294 \ud310\ub3c5 \uc2dc\uac04":"1\ubd84"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/atmokpo.com\/w\/27476\/#article","isPartOf":{"@id":"https:\/\/atmokpo.com\/w\/27476\/"},"author":{"name":"root","@id":"https:\/\/atmokpo.com\/w\/#\/schema\/person\/91b6b3b138fbba0efb4ae64b1abd81d7"},"headline":"C# \ucf54\ub529\ud14c\uc2a4\ud2b8 \uac15\uc88c, \ub3d9\uc801 \uacc4\ud68d\ubc95 \uc54c\uc544\ubcf4\uae30","datePublished":"2024-10-27T14:11:58+00:00","dateModified":"2024-11-26T07:17:56+00:00","mainEntityOfPage":{"@id":"https:\/\/atmokpo.com\/w\/27476\/"},"wordCount":42,"publisher":{"@id":"https:\/\/atmokpo.com\/w\/#organization"},"articleSection":["C# \ucf54\ub529\ud14c\uc2a4\ud2b8 \uac15\uc88c"],"inLanguage":"ko-KR"},{"@type":"WebPage","@id":"https:\/\/atmokpo.com\/w\/27476\/","url":"https:\/\/atmokpo.com\/w\/27476\/","name":"C# \ucf54\ub529\ud14c\uc2a4\ud2b8 \uac15\uc88c, \ub3d9\uc801 \uacc4\ud68d\ubc95 \uc54c\uc544\ubcf4\uae30 - \ub77c\uc774\ube0c\uc2a4\ub9c8\ud2b8","isPartOf":{"@id":"https:\/\/atmokpo.com\/w\/#website"},"datePublished":"2024-10-27T14:11:58+00:00","dateModified":"2024-11-26T07:17:56+00:00","breadcrumb":{"@id":"https:\/\/atmokpo.com\/w\/27476\/#breadcrumb"},"inLanguage":"ko-KR","potentialAction":[{"@type":"ReadAction","target":["https:\/\/atmokpo.com\/w\/27476\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/atmokpo.com\/w\/27476\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\ud648","item":"https:\/\/atmokpo.com\/w\/en\/"},{"@type":"ListItem","position":2,"name":"C# \ucf54\ub529\ud14c\uc2a4\ud2b8 \uac15\uc88c, \ub3d9\uc801 \uacc4\ud68d\ubc95 \uc54c\uc544\ubcf4\uae30"}]},{"@type":"WebSite","@id":"https:\/\/atmokpo.com\/w\/#website","url":"https:\/\/atmokpo.com\/w\/","name":"\ub77c\uc774\ube0c\uc2a4\ub9c8\ud2b8","description":"","publisher":{"@id":"https:\/\/atmokpo.com\/w\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/atmokpo.com\/w\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"ko-KR"},{"@type":"Organization","@id":"https:\/\/atmokpo.com\/w\/#organization","name":"\ub77c\uc774\ube0c\uc2a4\ub9c8\ud2b8","url":"https:\/\/atmokpo.com\/w\/","logo":{"@type":"ImageObject","inLanguage":"ko-KR","@id":"https:\/\/atmokpo.com\/w\/#\/schema\/logo\/image\/","url":"https:\/\/atmokpo.com\/w\/wp-content\/uploads\/2024\/11\/logo.png","contentUrl":"https:\/\/atmokpo.com\/w\/wp-content\/uploads\/2024\/11\/logo.png","width":400,"height":400,"caption":"\ub77c\uc774\ube0c\uc2a4\ub9c8\ud2b8"},"image":{"@id":"https:\/\/atmokpo.com\/w\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/x.com\/bebubo4"]},{"@type":"Person","@id":"https:\/\/atmokpo.com\/w\/#\/schema\/person\/91b6b3b138fbba0efb4ae64b1abd81d7","name":"root","image":{"@type":"ImageObject","inLanguage":"ko-KR","@id":"https:\/\/atmokpo.com\/w\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/708197b41fc6435a7ce22d951b25d4a47e9e904270cb1f04682d4f025066f80c?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/708197b41fc6435a7ce22d951b25d4a47e9e904270cb1f04682d4f025066f80c?s=96&d=mm&r=g","caption":"root"},"sameAs":["http:\/\/atmokpo.com\/w"],"url":"https:\/\/atmokpo.com\/w\/author\/root\/"}]}},"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"jetpack-related-posts":[],"_links":{"self":[{"href":"https:\/\/atmokpo.com\/w\/wp-json\/wp\/v2\/posts\/27476","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/atmokpo.com\/w\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/atmokpo.com\/w\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/atmokpo.com\/w\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/atmokpo.com\/w\/wp-json\/wp\/v2\/comments?post=27476"}],"version-history":[{"count":1,"href":"https:\/\/atmokpo.com\/w\/wp-json\/wp\/v2\/posts\/27476\/revisions"}],"predecessor-version":[{"id":27477,"href":"https:\/\/atmokpo.com\/w\/wp-json\/wp\/v2\/posts\/27476\/revisions\/27477"}],"wp:attachment":[{"href":"https:\/\/atmokpo.com\/w\/wp-json\/wp\/v2\/media?parent=27476"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/atmokpo.com\/w\/wp-json\/wp\/v2\/categories?post=27476"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/atmokpo.com\/w\/wp-json\/wp\/v2\/tags?post=27476"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}