{"id":27594,"date":"2024-10-27T14:42:13","date_gmt":"2024-10-27T14:42:13","guid":{"rendered":"http:\/\/atmokpo.com\/w\/?p=27594"},"modified":"2024-11-26T07:16:55","modified_gmt":"2024-11-26T07:16:55","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-2","status":"publish","type":"post","link":"https:\/\/atmokpo.com\/w\/27594\/","title":{"rendered":"C++ \ucf54\ub529\ud14c\uc2a4\ud2b8 \uac15\uc88c, \ub3d9\uc801 \uacc4\ud68d\ubc95 \uc54c\uc544\ubcf4\uae30"},"content":{"rendered":"<p><body><\/p>\n<h2>1. \ub3d9\uc801 \uacc4\ud68d\ubc95\uc774\ub780?<\/h2>\n<p>\ub3d9\uc801 \uacc4\ud68d\ubc95(Dynamic Programming, DP)\uc740 \ubcf5\uc7a1\ud55c \ubb38\uc81c\ub97c \uc791\uc740 \ubd80\ubd84 \ubb38\uc81c\ub85c \ub098\ub204\uc5b4 \ud574\uacb0\ud558\uace0, \uc774\ubbf8 \uacc4\uc0b0\ud55c \uacb0\uacfc\ub97c \uc800\uc7a5\ud558\uc5ec \ubc18\ubcf5 \uacc4\uc0b0\uc744 \ubc29\uc9c0\ud558\ub294 \uc54c\uace0\ub9ac\uc998 \uc124\uacc4 \uae30\ubc95\uc785\ub2c8\ub2e4. \uc8fc\ub85c \ucd5c\uc801\ud654 \ubb38\uc81c\uc5d0\uc11c \uc0ac\uc6a9\ub418\uba70, \uc2dc\uac04 \ubcf5\uc7a1\ub3c4\ub97c \uc904\uc774\uace0 \ud6a8\uc728\uc801\uc778 \ud574\uacb0\ucc45\uc744 \uc81c\uacf5\ud569\ub2c8\ub2e4.<\/p>\n<h3>1.1. \ub3d9\uc801 \uacc4\ud68d\ubc95\uc758 \ud2b9\uc9d5<\/h3>\n<ul>\n<li><strong>\ubd80\ubd84 \ubb38\uc81c \ucd5c\uc801\uc131:<\/strong> \ubb38\uc81c\ub97c \ud574\uacb0\ud558\uae30 \uc704\ud574 \ud544\uc694\ud55c \ubaa8\ub4e0 \ud558\uc704 \ubb38\uc81c\uc758 \ucd5c\uc801\ud574\ub97c \uad6c\ud574\uc57c \ud569\ub2c8\ub2e4.<\/li>\n<li><strong>\uc624\ubc84\ub798\ud551 \uc11c\ube0c\ud504\ub808\ube14\ub7fc:<\/strong> \ub3d9\uc77c\ud55c \ud558\uc704 \ubb38\uc81c\uac00 \uc5ec\ub7ec \ubc88 \uacc4\uc0b0\ub418\ub294 \uac83\uc744 \ubc29\uc9c0\ud569\ub2c8\ub2e4.<\/li>\n<\/ul>\n<h2>2. \ubb38\uc81c \uc18c\uac1c<\/h2>\n<h3>\ubb38\uc81c: \ucd5c\ub300 \ubd80\ubd84 \uc218\uc5f4 \ud569<\/h3>\n<p>\uc815\uc218\ub85c \uc774\ub8e8\uc5b4\uc9c4 \ubc30\uc5f4\uc5d0\uc11c \uc5f0\uc18d\ub41c \ubd80\ubd84 \uc218\uc5f4\uc758 \ud569\uc774 \ucd5c\ub300\uac00 \ub418\ub294 \uac12\uc744 \uad6c\ud558\ub294 \ubb38\uc81c\uc785\ub2c8\ub2e4. \uc608\ub97c \ub4e4\uc5b4, \ubc30\uc5f4 <code>{-2, 1, -3, 4, -1, 2, 1, -5, 4}<\/code>\uc758 \ucd5c\ub300 \ubd80\ubd84 \uc218\uc5f4 \ud569\uc740 <code>6<\/code>\uc73c\ub85c, \ubd80\ubd84 \uc218\uc5f4 <code>{4, -1, 2, 1}<\/code>\uc758 \ud569\uc785\ub2c8\ub2e4.<\/p>\n<h3>\ubb38\uc81c \uc785\ub825<\/h3>\n<ul>\n<li>\uccab \uc904\uc5d0 \ubc30\uc5f4\uc758 \ud06c\uae30 <code>N<\/code> (1 \u2264 N \u2264 100,000)\uc774 \uc8fc\uc5b4\uc9c4\ub2e4.<\/li>\n<li>\ub450 \ubc88\uc9f8 \uc904\uc5d0 \ubc30\uc5f4\uc758 \uc6d0\uc18c\uac00 \uacf5\ubc31\uc73c\ub85c \uad6c\ubd84\ub418\uc5b4 \uc8fc\uc5b4\uc9c4\ub2e4.<\/li>\n<\/ul>\n<h3>\ubb38\uc81c \ucd9c\ub825<\/h3>\n<p>\ucd5c\ub300 \ubd80\ubd84 \uc218\uc5f4 \ud569\uc744 \ucd9c\ub825\ud55c\ub2e4.<\/p>\n<h2>3. \ubb38\uc81c \ud574\uacb0 \uacfc\uc815<\/h2>\n<h3>3.1. \uc811\uadfc \ubc29\ubc95<\/h3>\n<p>\uc774 \ubb38\uc81c\ub97c \ub3d9\uc801 \uacc4\ud68d\ubc95\uc73c\ub85c \ud574\uacb0\ud558\uae30 \uc704\ud574\uc11c\ub294 \ub2e4\uc74c\uacfc \uac19\uc740 \ub2e8\uacc4\ub85c \uc811\uadfc\ud560 \uc218 \uc788\uc2b5\ub2c8\ub2e4:<\/p>\n<ol>\n<li><strong>\ubb38\uc81c \uc815\uc758:<\/strong> <code>dp[i]<\/code>\ub97c <code>i<\/code>\ubc88\uc9f8 \uc6d0\uc18c\uae4c\uc9c0\uc758 \ucd5c\ub300 \ubd80\ubd84 \uc218\uc5f4 \ud569\uc73c\ub85c \uc815\uc758\ud569\ub2c8\ub2e4.<\/li>\n<li><strong>\uc810\ud654\uc2dd \uc138\uc6b0\uae30:<\/strong> \uc810\ud654\uc2dd\uc740 <code>dp[i] = max(arr[i], dp[i-1] + arr[i])<\/code> \uc785\ub2c8\ub2e4. \uc989, <code>i<\/code>\ubc88\uc9f8 \uc6d0\uc18c\ub97c \ud3ec\ud568\ud560\uc9c0 \ub9d0\uc9c0\ub97c \uacb0\uc815\ud569\ub2c8\ub2e4.<\/li>\n<li><strong>\ucd08\uae30\uac12 \uc124\uc815:<\/strong> <code>dp[0] = arr[0]<\/code>\ub85c \uc2dc\uc791\ud569\ub2c8\ub2e4.<\/li>\n<li><strong>\ucd5c\ub313\uac12 \uacc4\uc0b0:<\/strong> \ubaa8\ub4e0 \uc6d0\uc18c\ub97c \uc21c\ud68c\ud558\uba74\uc11c \ucd5c\ub300 \uac12\uc744 \uac31\uc2e0\ud569\ub2c8\ub2e4.<\/li>\n<\/ol>\n<h3>3.2. C++ \ucf54\ub4dc \uad6c\ud604<\/h3>\n<pre>\n<code>\n#include &lt;iostream&gt;\n#include &lt;vector&gt;\n#include &lt;algorithm&gt;\n\nusing namespace std;\n\nint main() {\n    int N;\n    cin &gt;&gt; N;\n    vector<int> arr(N);\n    for(int i = 0; i &lt; N; i++) {\n        cin &gt;&gt; arr[i];\n    }\n\n    vector<int> dp(N);\n    dp[0] = arr[0];\n    int maxSum = dp[0];\n\n    for(int i = 1; i &lt; N; i++) {\n        dp[i] = max(arr[i], dp[i - 1] + arr[i]);\n        maxSum = max(maxSum, dp[i]);\n    }\n\n    cout &lt;&lt; maxSum &lt;&lt; endl;\n\n    return 0;\n}\n<\/int><\/int><\/code>\n    <\/pre>\n<h2>4. \ucf54\ub4dc \uc124\uba85<\/h2>\n<p>\uc704 \ucf54\ub4dc\uc5d0\uc11c\ub294 \uba3c\uc800 \ubc30\uc5f4\uc758 \ud06c\uae30 <code>N<\/code>\uacfc \ubc30\uc5f4 \uc6d0\uc18c\ub97c \uc785\ub825\ubc1b\uc2b5\ub2c8\ub2e4. \uadf8 \ub2e4\uc74c <code>dp<\/code> \ubc30\uc5f4\uc744 \uc120\uc5b8\ud558\uc5ec \uac01 \uc778\ub371\uc2a4\uae4c\uc9c0\uc758 \ucd5c\ub300 \ubd80\ubd84 \uc218\uc5f4 \ud569\uc744 \uc800\uc7a5\ud569\ub2c8\ub2e4. \uc774\ud6c4 \ubc18\ubcf5\ubb38\uc744 \ud1b5\ud574 <code>dp<\/code> \uac12\uc744 \uac31\uc2e0\ud558\uace0, \uadf8 \uacfc\uc815\uc5d0\uc11c \ucd5c\ub300 \uac12\uc744 \ucc3e\uc2b5\ub2c8\ub2e4.<\/p>\n<h3>4.1. \uc2dc\uac04 \ubcf5\uc7a1\ub3c4<\/h3>\n<p>\uc774 \uc54c\uace0\ub9ac\uc998\uc758 \uc2dc\uac04 \ubcf5\uc7a1\ub3c4\ub294 <code>O(N)<\/code>\uc785\ub2c8\ub2e4. \ubc30\uc5f4\uc744 \ud55c \ubc88 \uc21c\ud68c\ud558\uae30 \ub54c\ubb38\uc5d0 \uc120\ud615 \uc2dc\uac04 \ubcf5\uc7a1\ub3c4\ub97c \uac00\uc9d1\ub2c8\ub2e4.<\/p>\n<h3>4.2. \uacf5\uac04 \ubcf5\uc7a1\ub3c4<\/h3>\n<p>\uacf5\uac04 \ubcf5\uc7a1\ub3c4 \ub610\ud55c <code>O(N)<\/code>\uc774\uba70, \ucd5c\ub300 <code>N<\/code>\uac1c\uc758 \uac12\uc744 \uc800\uc7a5\ud569\ub2c8\ub2e4. \uadf8\ub7ec\ub098, <code>dp<\/code> \ubc30\uc5f4\uc744 \uc0ac\uc6a9\ud558\uc9c0 \uc54a\uace0 \ub450 \ubcc0\uc218\ub85c \ucd5c\ub300 \ud569\uc744 \uad6c\ud558\ub294 \ubc29\ubc95\ub3c4 \uc788\uc2b5\ub2c8\ub2e4.<\/p>\n<h2>5. \uacb0\ub860<\/h2>\n<p>\ub3d9\uc801 \uacc4\ud68d\ubc95\uc740 \ubcf5\uc7a1\ud55c \ubb38\uc81c\ub97c \ud6a8\uc728\uc801\uc73c\ub85c \ud574\uacb0\ud560 \uc218 \uc788\ub294 \uac15\ub825\ud55c \uae30\ubc95\uc785\ub2c8\ub2e4. \ucd5c\ub300 \ubd80\ubd84 \uc218\uc5f4 \ud569 \ubb38\uc81c\ub294 \ub3d9\uc801 \uacc4\ud68d\ubc95\uc758 \uae30\ubcf8 \uac1c\ub150\uc744 \uc774\ud574\ud558\ub294 \ub370\uc5d0 \ub3c4\uc6c0\uc744 \uc8fc\uba70, \ucf54\ub529\ud14c\uc2a4\ud2b8\uc5d0\uc11c\ub3c4 \uc790\uc8fc \ub4f1\uc7a5\ud558\ubbc0\ub85c \ucda9\ubd84\ud55c \uc5f0\uc2b5\uc774 \ud544\uc694\ud569\ub2c8\ub2e4.<\/p>\n<footer>\n<p>\u00a9 2023 C++ \ucf54\ub529\ud14c\uc2a4\ud2b8 \uac15\uc88c<\/p>\n<\/footer>\n<p><\/body><\/p>\n","protected":false},"excerpt":{"rendered":"<p>1. \ub3d9\uc801 \uacc4\ud68d\ubc95\uc774\ub780? \ub3d9\uc801 \uacc4\ud68d\ubc95(Dynamic Programming, DP)\uc740 \ubcf5\uc7a1\ud55c \ubb38\uc81c\ub97c \uc791\uc740 \ubd80\ubd84 \ubb38\uc81c\ub85c \ub098\ub204\uc5b4 \ud574\uacb0\ud558\uace0, \uc774\ubbf8 \uacc4\uc0b0\ud55c \uacb0\uacfc\ub97c \uc800\uc7a5\ud558\uc5ec \ubc18\ubcf5 \uacc4\uc0b0\uc744 \ubc29\uc9c0\ud558\ub294 \uc54c\uace0\ub9ac\uc998 \uc124\uacc4 \uae30\ubc95\uc785\ub2c8\ub2e4. \uc8fc\ub85c \ucd5c\uc801\ud654 \ubb38\uc81c\uc5d0\uc11c \uc0ac\uc6a9\ub418\uba70, \uc2dc\uac04 \ubcf5\uc7a1\ub3c4\ub97c \uc904\uc774\uace0 \ud6a8\uc728\uc801\uc778 \ud574\uacb0\ucc45\uc744 \uc81c\uacf5\ud569\ub2c8\ub2e4. 1.1. \ub3d9\uc801 \uacc4\ud68d\ubc95\uc758 \ud2b9\uc9d5 \ubd80\ubd84 \ubb38\uc81c \ucd5c\uc801\uc131: \ubb38\uc81c\ub97c \ud574\uacb0\ud558\uae30 \uc704\ud574 \ud544\uc694\ud55c \ubaa8\ub4e0 \ud558\uc704 \ubb38\uc81c\uc758 \ucd5c\uc801\ud574\ub97c \uad6c\ud574\uc57c \ud569\ub2c8\ub2e4. \uc624\ubc84\ub798\ud551 \uc11c\ube0c\ud504\ub808\ube14\ub7fc: \ub3d9\uc77c\ud55c \ud558\uc704 &hellip; <a href=\"https:\/\/atmokpo.com\/w\/27594\/\" 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":[25],"tags":[],"class_list":["post-27594","post","type-post","status-publish","format-standard","hentry","category-c---2"],"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\/27594\/\" \/>\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=\"1. \ub3d9\uc801 \uacc4\ud68d\ubc95\uc774\ub780? \ub3d9\uc801 \uacc4\ud68d\ubc95(Dynamic Programming, DP)\uc740 \ubcf5\uc7a1\ud55c \ubb38\uc81c\ub97c \uc791\uc740 \ubd80\ubd84 \ubb38\uc81c\ub85c \ub098\ub204\uc5b4 \ud574\uacb0\ud558\uace0, \uc774\ubbf8 \uacc4\uc0b0\ud55c \uacb0\uacfc\ub97c \uc800\uc7a5\ud558\uc5ec \ubc18\ubcf5 \uacc4\uc0b0\uc744 \ubc29\uc9c0\ud558\ub294 \uc54c\uace0\ub9ac\uc998 \uc124\uacc4 \uae30\ubc95\uc785\ub2c8\ub2e4. \uc8fc\ub85c \ucd5c\uc801\ud654 \ubb38\uc81c\uc5d0\uc11c \uc0ac\uc6a9\ub418\uba70, \uc2dc\uac04 \ubcf5\uc7a1\ub3c4\ub97c \uc904\uc774\uace0 \ud6a8\uc728\uc801\uc778 \ud574\uacb0\ucc45\uc744 \uc81c\uacf5\ud569\ub2c8\ub2e4. 1.1. \ub3d9\uc801 \uacc4\ud68d\ubc95\uc758 \ud2b9\uc9d5 \ubd80\ubd84 \ubb38\uc81c \ucd5c\uc801\uc131: \ubb38\uc81c\ub97c \ud574\uacb0\ud558\uae30 \uc704\ud574 \ud544\uc694\ud55c \ubaa8\ub4e0 \ud558\uc704 \ubb38\uc81c\uc758 \ucd5c\uc801\ud574\ub97c \uad6c\ud574\uc57c \ud569\ub2c8\ub2e4. \uc624\ubc84\ub798\ud551 \uc11c\ube0c\ud504\ub808\ube14\ub7fc: \ub3d9\uc77c\ud55c \ud558\uc704 &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\/27594\/\" \/>\n<meta property=\"og:site_name\" content=\"\ub77c\uc774\ube0c\uc2a4\ub9c8\ud2b8\" \/>\n<meta property=\"article:published_time\" content=\"2024-10-27T14:42:13+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2024-11-26T07:16:55+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\/27594\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/atmokpo.com\/w\/27594\/\"},\"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:42:13+00:00\",\"dateModified\":\"2024-11-26T07:16:55+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/atmokpo.com\/w\/27594\/\"},\"wordCount\":7,\"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\/27594\/\",\"url\":\"https:\/\/atmokpo.com\/w\/27594\/\",\"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:42:13+00:00\",\"dateModified\":\"2024-11-26T07:16:55+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/atmokpo.com\/w\/27594\/#breadcrumb\"},\"inLanguage\":\"ko-KR\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/atmokpo.com\/w\/27594\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/atmokpo.com\/w\/27594\/#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\/27594\/","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":"1. \ub3d9\uc801 \uacc4\ud68d\ubc95\uc774\ub780? \ub3d9\uc801 \uacc4\ud68d\ubc95(Dynamic Programming, DP)\uc740 \ubcf5\uc7a1\ud55c \ubb38\uc81c\ub97c \uc791\uc740 \ubd80\ubd84 \ubb38\uc81c\ub85c \ub098\ub204\uc5b4 \ud574\uacb0\ud558\uace0, \uc774\ubbf8 \uacc4\uc0b0\ud55c \uacb0\uacfc\ub97c \uc800\uc7a5\ud558\uc5ec \ubc18\ubcf5 \uacc4\uc0b0\uc744 \ubc29\uc9c0\ud558\ub294 \uc54c\uace0\ub9ac\uc998 \uc124\uacc4 \uae30\ubc95\uc785\ub2c8\ub2e4. \uc8fc\ub85c \ucd5c\uc801\ud654 \ubb38\uc81c\uc5d0\uc11c \uc0ac\uc6a9\ub418\uba70, \uc2dc\uac04 \ubcf5\uc7a1\ub3c4\ub97c \uc904\uc774\uace0 \ud6a8\uc728\uc801\uc778 \ud574\uacb0\ucc45\uc744 \uc81c\uacf5\ud569\ub2c8\ub2e4. 1.1. \ub3d9\uc801 \uacc4\ud68d\ubc95\uc758 \ud2b9\uc9d5 \ubd80\ubd84 \ubb38\uc81c \ucd5c\uc801\uc131: \ubb38\uc81c\ub97c \ud574\uacb0\ud558\uae30 \uc704\ud574 \ud544\uc694\ud55c \ubaa8\ub4e0 \ud558\uc704 \ubb38\uc81c\uc758 \ucd5c\uc801\ud574\ub97c \uad6c\ud574\uc57c \ud569\ub2c8\ub2e4. \uc624\ubc84\ub798\ud551 \uc11c\ube0c\ud504\ub808\ube14\ub7fc: \ub3d9\uc77c\ud55c \ud558\uc704 &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\/27594\/","og_site_name":"\ub77c\uc774\ube0c\uc2a4\ub9c8\ud2b8","article_published_time":"2024-10-27T14:42:13+00:00","article_modified_time":"2024-11-26T07:16:55+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\/27594\/#article","isPartOf":{"@id":"https:\/\/atmokpo.com\/w\/27594\/"},"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:42:13+00:00","dateModified":"2024-11-26T07:16:55+00:00","mainEntityOfPage":{"@id":"https:\/\/atmokpo.com\/w\/27594\/"},"wordCount":7,"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\/27594\/","url":"https:\/\/atmokpo.com\/w\/27594\/","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:42:13+00:00","dateModified":"2024-11-26T07:16:55+00:00","breadcrumb":{"@id":"https:\/\/atmokpo.com\/w\/27594\/#breadcrumb"},"inLanguage":"ko-KR","potentialAction":[{"@type":"ReadAction","target":["https:\/\/atmokpo.com\/w\/27594\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/atmokpo.com\/w\/27594\/#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\/27594","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=27594"}],"version-history":[{"count":1,"href":"https:\/\/atmokpo.com\/w\/wp-json\/wp\/v2\/posts\/27594\/revisions"}],"predecessor-version":[{"id":27595,"href":"https:\/\/atmokpo.com\/w\/wp-json\/wp\/v2\/posts\/27594\/revisions\/27595"}],"wp:attachment":[{"href":"https:\/\/atmokpo.com\/w\/wp-json\/wp\/v2\/media?parent=27594"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/atmokpo.com\/w\/wp-json\/wp\/v2\/categories?post=27594"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/atmokpo.com\/w\/wp-json\/wp\/v2\/tags?post=27594"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}