{"id":27802,"date":"2024-10-27T14:43:55","date_gmt":"2024-10-27T14:43:55","guid":{"rendered":"http:\/\/atmokpo.com\/w\/?p=27802"},"modified":"2024-11-26T07:14:52","modified_gmt":"2024-11-26T07:14:52","slug":"c-%ec%bd%94%eb%94%a9%ed%85%8c%ec%8a%a4%ed%8a%b8-%ea%b0%95%ec%a2%8c-%ed%9a%a8%ec%9c%a8%ec%a0%81%ec%9c%bc%eb%a1%9c-%ed%95%b4%ed%82%b9%ed%95%98%ea%b8%b0-2","status":"publish","type":"post","link":"https:\/\/atmokpo.com\/w\/27802\/","title":{"rendered":"C++ \ucf54\ub529\ud14c\uc2a4\ud2b8 \uac15\uc88c, \ud6a8\uc728\uc801\uc73c\ub85c \ud574\ud0b9\ud558\uae30"},"content":{"rendered":"<p><body><\/p>\n<div class=\"container\">\n<h2>\ubb38\uc81c \uc124\uba85<\/h2>\n<p>\uc8fc\uc5b4\uc9c4 \uc815\uc218 \ubc30\uc5f4\uc774 \uc788\uc744 \ub54c, \uc774\ub97c \ub450 \uac1c\uc758 \ubd80\ubd84\uc9d1\ud569\uc73c\ub85c \ub098\ub204\uc5b4 \uac01\uac01\uc758 \ud569\uc774 \ub3d9\uc77c\ud558\uac8c \ub9cc\ub4e4 \uc218 \uc788\ub294\uc9c0 \uc5ec\ubd80\ub97c \ud655\uc778\ud558\ub294 \ud504\ub85c\uadf8\ub7a8\uc744 \uc791\uc131\ud558\uc2dc\uc624.<\/p>\n<p>\uc774 \ubb38\uc81c\ub294 &#8216;\ubd80\ubd84 \uc9d1\ud569 \ud569 \ubb38\uc81c'(Subset Sum Problem)\uc5d0 \ud574\ub2f9\ud569\ub2c8\ub2e4. \uc774 \ubb38\uc81c\ub294 \ub3d9\uc801 \ud504\ub85c\uadf8\ub798\ubc0d(Dynamic Programming)\uc744 \uc0ac\uc6a9\ud558\uc5ec \ud574\uacb0\ud560 \uc218 \uc788\uc2b5\ub2c8\ub2e4.<\/p>\n<h2>\uc785\ub825 \ud615\uc2dd<\/h2>\n<ul>\n<li>\uccab \ubc88\uc9f8 \uc904\uc5d0 \ubc30\uc5f4\uc758 \ud06c\uae30 N (1 \u2264 N \u2264 20)\uc774 \uc8fc\uc5b4\uc9c4\ub2e4.<\/li>\n<li>\ub450 \ubc88\uc9f8 \uc904\uc5d0 \ubc30\uc5f4\uc758 N\uac1c\uc758 \uc815\uc218 (\uac01\uac01\uc758 \uc815\uc218\ub294 0 \uc774\uc0c1 10000 \uc774\ud558)\uac00 \uc8fc\uc5b4\uc9c4\ub2e4.<\/li>\n<\/ul>\n<h2>\ucd9c\ub825 \ud615\uc2dd<\/h2>\n<p>\ubd80\ubd84\uc9d1\ud569\uc744 \ub098\ub20c \uc218 \uc788\uc73c\uba74 &#8220;YES&#8221;\ub97c, \ubd88\uac00\ub2a5\ud558\uba74 &#8220;NO&#8221;\ub97c \ucd9c\ub825\ud55c\ub2e4.<\/p>\n<h2>\uc608\uc81c \uc785\ub825<\/h2>\n<pre>\n        4\n        1 5 11 5\n        <\/pre>\n<h2>\uc608\uc81c \ucd9c\ub825<\/h2>\n<pre>\n        YES\n        <\/pre>\n<h2>\ubb38\uc81c \ud574\uacb0 \uc811\uadfc\ubc95<\/h2>\n<p>\uc774 \ubb38\uc81c\ub97c \ud574\uacb0\ud558\uae30 \uc704\ud574\uc11c\ub294 \uba3c\uc800 \ub2e4\uc74c \ub2e8\uacc4\ub97c \ub530\ub77c\uc57c \ud569\ub2c8\ub2e4:<\/p>\n<ol>\n<li>\uc785\ub825 \ubc30\uc5f4\uc758 \ud569\uc744 \uacc4\uc0b0\ud569\ub2c8\ub2e4.<\/li>\n<li>\ud569\uc774 \ud640\uc218\uc778 \uacbd\uc6b0, \ub450 \ubd80\ubd84\uc9d1\ud569\uc758 \ud569\uc774 \uac19\uc744 \uc218 \uc5c6\uc73c\ubbc0\ub85c &#8220;NO&#8221;\ub97c \ubc18\ud658\ud569\ub2c8\ub2e4.<\/li>\n<li>\ud569\uc774 \uc9dd\uc218\uc778 \uacbd\uc6b0, \ubaa9\ud45c\uac12\uc744 \ud569\uc758 \uc808\ubc18\uc73c\ub85c \uc124\uc815\ud558\uace0 \uc774\ub97c \ub2ec\uc131\ud560 \uc218 \uc788\ub294\uc9c0 \ud310\ub2e8\ud558\uae30 \uc704\ud574 \ub3d9\uc801 \ud504\ub85c\uadf8\ub798\ubc0d\uc744 \uc0ac\uc6a9\ud560 \uc218 \uc788\uc2b5\ub2c8\ub2e4.<\/li>\n<li>\uc0c1\ud0dc \ud14c\uc774\ube14\uc744 \uc124\uc815\ud558\uace0, \uac01 \uc22b\uc790\uac00 \ubaa9\ud45c\uac12\uc744 \ub9cc\ub4dc\ub294 \ub370 \uc0ac\uc6a9\ub420 \uc218 \uc788\ub294\uc9c0 \ud655\uc778\ud569\ub2c8\ub2e4.<\/li>\n<\/ol>\n<h2>C++ \ucf54\ub4dc<\/h2>\n<pre>\n#include &lt;iostream&gt;\n#include &lt;vector&gt;\nusing namespace std;\n\nbool canPartition(vector&lt;int&gt;&amp; arr) {\n    int sum = 0;\n    for (int num : arr) sum += num;\n    if (sum % 2 != 0) return false;\n\n    int target = sum \/ 2;\n    vector&lt;bool&gt; dp(target + 1, false);\n    dp[0] = true;\n\n    for (int num : arr) {\n        for (int j = target; j &gt;= num; j--) {\n            dp[j] = dp[j] || dp[j - num];\n        }\n    }\n\n    return dp[target];\n}\n\nint main() {\n    int N;\n    cin &gt;&gt; N;\n    vector&lt;int&gt; arr(N);\n    for (int i = 0; i &lt; N; i++) {\n        cin &gt;&gt; arr[i];\n    }\n    \n    cout &lt;&lt; (canPartition(arr) ? \"YES\" : \"NO\") &lt;&lt; endl;\n    return 0;\n}\n        <\/pre>\n<h2>\ucf54\ub4dc \uc124\uba85<\/h2>\n<p>\uc704\uc758 \ucf54\ub4dc\ub294 \ub2e4\uc74c\uacfc \uac19\uc740 \ubc29\uc2dd\uc73c\ub85c \uc791\ub3d9\ud569\ub2c8\ub2e4:<\/p>\n<ol>\n<li>\uba3c\uc800 \uc22b\uc790 \ubc30\uc5f4\uc758 \ucd1d\ud569\uc744 \uacc4\uc0b0\ud569\ub2c8\ub2e4.<\/li>\n<li>\ud569\uc774 \ud640\uc218\uc778\uc9c0 \ud655\uc778\ud569\ub2c8\ub2e4. \ud640\uc218\ub77c\uba74 &#8220;NO&#8221;\ub97c \ubc18\ud658\ud569\ub2c8\ub2e4.<\/li>\n<li>\ud569\uc774 \uc9dd\uc218\uc774\uba74, \ubaa9\ud45c\uac12\uc744 \ud569\uc758 \uc808\ubc18\uc73c\ub85c \uc124\uc815\ud558\uace0 \ub3d9\uc801 \ud504\ub85c\uadf8\ub798\ubc0d \ubc30\uc5f4\uc744 \ucd08\uae30\ud654\ud569\ub2c8\ub2e4.<\/li>\n<li>\uac01 \uc22b\uc790\ub97c \ubc18\ubcf5\ud558\uba74\uc11c \ubaa9\ud45c\uac12\uc5d0 \uc774\ub97c \ub9cc\ub4e4 \uc218 \uc788\ub294\uc9c0 \ud655\uc778\ud569\ub2c8\ub2e4.<\/li>\n<li>\uacb0\uacfc\uc801\uc73c\ub85c \ubaa9\ud45c\uac12\uc744 \ub9cc\ub4e4 \uc218 \uc788\uc73c\uba74 &#8220;YES&#8221;, \uadf8\ub807\uc9c0 \uc54a\uc73c\uba74 &#8220;NO&#8221;\ub97c \ucd9c\ub825\ud569\ub2c8\ub2e4.<\/li>\n<\/ol>\n<h2>\uc2dc\uac04 \ubcf5\uc7a1\ub3c4<\/h2>\n<p>\uc774 \uc54c\uace0\ub9ac\uc998\uc758 \uc2dc\uac04 \ubcf5\uc7a1\ub3c4\ub294 O(N * target)\uc785\ub2c8\ub2e4. \uc5ec\uae30\uc11c N\uc740 \uc785\ub825 \uc22b\uc790\uc758 \uac1c\uc218\uc774\uace0, target\uc740 \uc785\ub825 \ubc30\uc5f4\uc758 \ucd1d\ud569\uc758 \uc808\ubc18\uc785\ub2c8\ub2e4. \uc774\ub85c \uc778\ud574 \uc11c\ub85c \ub2e4\ub978 \ubd80\ubd84\uc9d1\ud569\uc744 \uc0dd\uc131\ud558\uae30 \uc704\ud574 \uc0ac\uc6a9\ub420 \uc218 \uc788\ub294 \uc5f0\uc0b0\uc758 \uc218\uac00 \uacb0\uc815\ub429\ub2c8\ub2e4.<\/p>\n<h2>\ub9c8\ubb34\ub9ac<\/h2>\n<p>\uc5ec\uae30\uae4c\uc9c0\uac00 \ubd80\ubd84 \uc9d1\ud569 \ud569 \ubb38\uc81c\uc758 \ucf54\ub4dc\uc640 \uc124\uba85\uc785\ub2c8\ub2e4. \uc774\uc640 \uac19\uc740 \uc54c\uace0\ub9ac\uc998 \ubb38\uc81c\ub294 \ucf54\ub529 \ud14c\uc2a4\ud2b8\uc5d0\uc11c \uc790\uc8fc \ucd9c\uc81c\ub418\ub294 \uc720\ud615\uc774\ubbc0\ub85c, \uc790\uc8fc \uc5f0\uc2b5\ud574 \ubcf4\ub294 \uac83\uc774 \uc88b\uc2b5\ub2c8\ub2e4. \ub2e4\uc74c \uac15\uc88c\uc5d0\uc11c\ub294 \uc880 \ub354 \ubcf5\uc7a1\ud55c \ubb38\uc81c\ub4e4\uacfc \uadf8 \ud574\uacb0 \ubc29\ubc95\uc5d0 \ub300\ud574 \ub2e4\ub8e8\uc5b4 \ubcf4\uaca0\uc2b5\ub2c8\ub2e4.<\/p>\n<h2>\uc9c8\ubb38\uacfc \ud53c\ub4dc\ubc31<\/h2>\n<p>\uc791\uc131\ud55c \ucf54\ub4dc\ub098 \uc774\ud574\uac00 \uc5b4\ub824\uc6b4 \ubd80\ubd84\uc5d0 \ub300\ud574 \uad81\uae08\ud55c \uc810\uc774 \uc788\uc73c\uba74 \uc5b8\uc81c\ub4e0\uc9c0 \ub313\uae00\ub85c \ub0a8\uaca8\uc8fc\uc138\uc694!<\/p>\n<\/div>\n<p><\/body><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\ubb38\uc81c \uc124\uba85 \uc8fc\uc5b4\uc9c4 \uc815\uc218 \ubc30\uc5f4\uc774 \uc788\uc744 \ub54c, \uc774\ub97c \ub450 \uac1c\uc758 \ubd80\ubd84\uc9d1\ud569\uc73c\ub85c \ub098\ub204\uc5b4 \uac01\uac01\uc758 \ud569\uc774 \ub3d9\uc77c\ud558\uac8c \ub9cc\ub4e4 \uc218 \uc788\ub294\uc9c0 \uc5ec\ubd80\ub97c \ud655\uc778\ud558\ub294 \ud504\ub85c\uadf8\ub7a8\uc744 \uc791\uc131\ud558\uc2dc\uc624. \uc774 \ubb38\uc81c\ub294 &#8216;\ubd80\ubd84 \uc9d1\ud569 \ud569 \ubb38\uc81c'(Subset Sum Problem)\uc5d0 \ud574\ub2f9\ud569\ub2c8\ub2e4. \uc774 \ubb38\uc81c\ub294 \ub3d9\uc801 \ud504\ub85c\uadf8\ub798\ubc0d(Dynamic Programming)\uc744 \uc0ac\uc6a9\ud558\uc5ec \ud574\uacb0\ud560 \uc218 \uc788\uc2b5\ub2c8\ub2e4. \uc785\ub825 \ud615\uc2dd \uccab \ubc88\uc9f8 \uc904\uc5d0 \ubc30\uc5f4\uc758 \ud06c\uae30 N (1 \u2264 N \u2264 20)\uc774 \uc8fc\uc5b4\uc9c4\ub2e4. \ub450 &hellip; <a href=\"https:\/\/atmokpo.com\/w\/27802\/\" class=\"more-link\">\ub354 \ubcf4\uae30<span class=\"screen-reader-text\"> &#8220;C++ \ucf54\ub529\ud14c\uc2a4\ud2b8 \uac15\uc88c, \ud6a8\uc728\uc801\uc73c\ub85c \ud574\ud0b9\ud558\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-27802","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, \ud6a8\uc728\uc801\uc73c\ub85c \ud574\ud0b9\ud558\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\/27802\/\" \/>\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, \ud6a8\uc728\uc801\uc73c\ub85c \ud574\ud0b9\ud558\uae30 - \ub77c\uc774\ube0c\uc2a4\ub9c8\ud2b8\" \/>\n<meta property=\"og:description\" content=\"\ubb38\uc81c \uc124\uba85 \uc8fc\uc5b4\uc9c4 \uc815\uc218 \ubc30\uc5f4\uc774 \uc788\uc744 \ub54c, \uc774\ub97c \ub450 \uac1c\uc758 \ubd80\ubd84\uc9d1\ud569\uc73c\ub85c \ub098\ub204\uc5b4 \uac01\uac01\uc758 \ud569\uc774 \ub3d9\uc77c\ud558\uac8c \ub9cc\ub4e4 \uc218 \uc788\ub294\uc9c0 \uc5ec\ubd80\ub97c \ud655\uc778\ud558\ub294 \ud504\ub85c\uadf8\ub7a8\uc744 \uc791\uc131\ud558\uc2dc\uc624. \uc774 \ubb38\uc81c\ub294 &#8216;\ubd80\ubd84 \uc9d1\ud569 \ud569 \ubb38\uc81c&#039;(Subset Sum Problem)\uc5d0 \ud574\ub2f9\ud569\ub2c8\ub2e4. \uc774 \ubb38\uc81c\ub294 \ub3d9\uc801 \ud504\ub85c\uadf8\ub798\ubc0d(Dynamic Programming)\uc744 \uc0ac\uc6a9\ud558\uc5ec \ud574\uacb0\ud560 \uc218 \uc788\uc2b5\ub2c8\ub2e4. \uc785\ub825 \ud615\uc2dd \uccab \ubc88\uc9f8 \uc904\uc5d0 \ubc30\uc5f4\uc758 \ud06c\uae30 N (1 \u2264 N \u2264 20)\uc774 \uc8fc\uc5b4\uc9c4\ub2e4. \ub450 &hellip; \ub354 \ubcf4\uae30 &quot;C++ \ucf54\ub529\ud14c\uc2a4\ud2b8 \uac15\uc88c, \ud6a8\uc728\uc801\uc73c\ub85c \ud574\ud0b9\ud558\uae30&quot;\" \/>\n<meta property=\"og:url\" content=\"https:\/\/atmokpo.com\/w\/27802\/\" \/>\n<meta property=\"og:site_name\" content=\"\ub77c\uc774\ube0c\uc2a4\ub9c8\ud2b8\" \/>\n<meta property=\"article:published_time\" content=\"2024-10-27T14:43:55+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2024-11-26T07:14:52+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\/27802\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/atmokpo.com\/w\/27802\/\"},\"author\":{\"name\":\"root\",\"@id\":\"https:\/\/atmokpo.com\/w\/#\/schema\/person\/91b6b3b138fbba0efb4ae64b1abd81d7\"},\"headline\":\"C++ \ucf54\ub529\ud14c\uc2a4\ud2b8 \uac15\uc88c, \ud6a8\uc728\uc801\uc73c\ub85c \ud574\ud0b9\ud558\uae30\",\"datePublished\":\"2024-10-27T14:43:55+00:00\",\"dateModified\":\"2024-11-26T07:14:52+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/atmokpo.com\/w\/27802\/\"},\"wordCount\":21,\"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\/27802\/\",\"url\":\"https:\/\/atmokpo.com\/w\/27802\/\",\"name\":\"C++ \ucf54\ub529\ud14c\uc2a4\ud2b8 \uac15\uc88c, \ud6a8\uc728\uc801\uc73c\ub85c \ud574\ud0b9\ud558\uae30 - \ub77c\uc774\ube0c\uc2a4\ub9c8\ud2b8\",\"isPartOf\":{\"@id\":\"https:\/\/atmokpo.com\/w\/#website\"},\"datePublished\":\"2024-10-27T14:43:55+00:00\",\"dateModified\":\"2024-11-26T07:14:52+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/atmokpo.com\/w\/27802\/#breadcrumb\"},\"inLanguage\":\"ko-KR\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/atmokpo.com\/w\/27802\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/atmokpo.com\/w\/27802\/#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, \ud6a8\uc728\uc801\uc73c\ub85c \ud574\ud0b9\ud558\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, \ud6a8\uc728\uc801\uc73c\ub85c \ud574\ud0b9\ud558\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\/27802\/","og_locale":"ko_KR","og_type":"article","og_title":"C++ \ucf54\ub529\ud14c\uc2a4\ud2b8 \uac15\uc88c, \ud6a8\uc728\uc801\uc73c\ub85c \ud574\ud0b9\ud558\uae30 - \ub77c\uc774\ube0c\uc2a4\ub9c8\ud2b8","og_description":"\ubb38\uc81c \uc124\uba85 \uc8fc\uc5b4\uc9c4 \uc815\uc218 \ubc30\uc5f4\uc774 \uc788\uc744 \ub54c, \uc774\ub97c \ub450 \uac1c\uc758 \ubd80\ubd84\uc9d1\ud569\uc73c\ub85c \ub098\ub204\uc5b4 \uac01\uac01\uc758 \ud569\uc774 \ub3d9\uc77c\ud558\uac8c \ub9cc\ub4e4 \uc218 \uc788\ub294\uc9c0 \uc5ec\ubd80\ub97c \ud655\uc778\ud558\ub294 \ud504\ub85c\uadf8\ub7a8\uc744 \uc791\uc131\ud558\uc2dc\uc624. \uc774 \ubb38\uc81c\ub294 &#8216;\ubd80\ubd84 \uc9d1\ud569 \ud569 \ubb38\uc81c'(Subset Sum Problem)\uc5d0 \ud574\ub2f9\ud569\ub2c8\ub2e4. \uc774 \ubb38\uc81c\ub294 \ub3d9\uc801 \ud504\ub85c\uadf8\ub798\ubc0d(Dynamic Programming)\uc744 \uc0ac\uc6a9\ud558\uc5ec \ud574\uacb0\ud560 \uc218 \uc788\uc2b5\ub2c8\ub2e4. \uc785\ub825 \ud615\uc2dd \uccab \ubc88\uc9f8 \uc904\uc5d0 \ubc30\uc5f4\uc758 \ud06c\uae30 N (1 \u2264 N \u2264 20)\uc774 \uc8fc\uc5b4\uc9c4\ub2e4. \ub450 &hellip; \ub354 \ubcf4\uae30 \"C++ \ucf54\ub529\ud14c\uc2a4\ud2b8 \uac15\uc88c, \ud6a8\uc728\uc801\uc73c\ub85c \ud574\ud0b9\ud558\uae30\"","og_url":"https:\/\/atmokpo.com\/w\/27802\/","og_site_name":"\ub77c\uc774\ube0c\uc2a4\ub9c8\ud2b8","article_published_time":"2024-10-27T14:43:55+00:00","article_modified_time":"2024-11-26T07:14:52+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\/27802\/#article","isPartOf":{"@id":"https:\/\/atmokpo.com\/w\/27802\/"},"author":{"name":"root","@id":"https:\/\/atmokpo.com\/w\/#\/schema\/person\/91b6b3b138fbba0efb4ae64b1abd81d7"},"headline":"C++ \ucf54\ub529\ud14c\uc2a4\ud2b8 \uac15\uc88c, \ud6a8\uc728\uc801\uc73c\ub85c \ud574\ud0b9\ud558\uae30","datePublished":"2024-10-27T14:43:55+00:00","dateModified":"2024-11-26T07:14:52+00:00","mainEntityOfPage":{"@id":"https:\/\/atmokpo.com\/w\/27802\/"},"wordCount":21,"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\/27802\/","url":"https:\/\/atmokpo.com\/w\/27802\/","name":"C++ \ucf54\ub529\ud14c\uc2a4\ud2b8 \uac15\uc88c, \ud6a8\uc728\uc801\uc73c\ub85c \ud574\ud0b9\ud558\uae30 - \ub77c\uc774\ube0c\uc2a4\ub9c8\ud2b8","isPartOf":{"@id":"https:\/\/atmokpo.com\/w\/#website"},"datePublished":"2024-10-27T14:43:55+00:00","dateModified":"2024-11-26T07:14:52+00:00","breadcrumb":{"@id":"https:\/\/atmokpo.com\/w\/27802\/#breadcrumb"},"inLanguage":"ko-KR","potentialAction":[{"@type":"ReadAction","target":["https:\/\/atmokpo.com\/w\/27802\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/atmokpo.com\/w\/27802\/#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, \ud6a8\uc728\uc801\uc73c\ub85c \ud574\ud0b9\ud558\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\/27802","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=27802"}],"version-history":[{"count":1,"href":"https:\/\/atmokpo.com\/w\/wp-json\/wp\/v2\/posts\/27802\/revisions"}],"predecessor-version":[{"id":27803,"href":"https:\/\/atmokpo.com\/w\/wp-json\/wp\/v2\/posts\/27802\/revisions\/27803"}],"wp:attachment":[{"href":"https:\/\/atmokpo.com\/w\/wp-json\/wp\/v2\/media?parent=27802"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/atmokpo.com\/w\/wp-json\/wp\/v2\/categories?post=27802"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/atmokpo.com\/w\/wp-json\/wp\/v2\/tags?post=27802"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}