{"id":27572,"date":"2024-10-27T14:42:02","date_gmt":"2024-10-27T14:42:02","guid":{"rendered":"http:\/\/atmokpo.com\/w\/?p=27572"},"modified":"2024-11-26T07:17:11","modified_gmt":"2024-11-26T07:17:11","slug":"c-%ec%bd%94%eb%94%a9%ed%85%8c%ec%8a%a4%ed%8a%b8-%ea%b0%95%ec%a2%8c-%ea%b7%b8%eb%a6%ac%eb%94%94-%ec%95%8c%ea%b3%a0%eb%a6%ac%ec%a6%98-2","status":"publish","type":"post","link":"https:\/\/atmokpo.com\/w\/27572\/","title":{"rendered":"C++ \ucf54\ub529\ud14c\uc2a4\ud2b8 \uac15\uc88c, \uadf8\ub9ac\ub514 \uc54c\uace0\ub9ac\uc998"},"content":{"rendered":"<p><body><\/p>\n<h2>1. \uadf8\ub9ac\ub514 \uc54c\uace0\ub9ac\uc998\uc774\ub780?<\/h2>\n<p>\uadf8\ub9ac\ub514 \uc54c\uace0\ub9ac\uc998(Greedy Algorithm)\uc740 \ubb38\uc81c\ub97c \ud574\uacb0\ud558\ub294 \uacfc\uc815\uc5d0\uc11c \ub9e4 \ub2e8\uacc4\uc5d0\uc11c \ucd5c\uc801\uc774\ub77c\uace0 \uc0dd\uac01\ub418\ub294 \uc120\ud0dd\uc744 \ud558\ub294 \ubc29\uc2dd\uc785\ub2c8\ub2e4. \uc77c\ubc18\uc801\uc73c\ub85c \uadf8\ub9ac\ub514 \uc54c\uace0\ub9ac\uc998\uc740 \ubb38\uc81c\ub97c \ub2e8\uacc4\uc801\uc73c\ub85c \ud574\uacb0\ud558\uba70, \uac01 \ub2e8\uacc4\uc5d0\uc11c\uc758 \ucd5c\uc801 \uc120\ud0dd\uc774 \uc804\uccb4 \ubb38\uc81c\uc5d0 \ub300\ud55c \ucd5c\uc801\ud574\ub97c \ub9cc\ub4e4\uc5b4\ub0bc \uac83\uc774\ub77c\uace0 \uac00\uc815\ud569\ub2c8\ub2e4. \ub2e8, \uc774\ub7ec\ud55c \uadf8\ub9ac\ub514 \uc120\ud0dd\uc774 \ud56d\uc0c1 \ucd5c\uc801\ud574\ub97c \ubcf4\uc7a5\ud558\uc9c0\ub294 \uc54a\uc2b5\ub2c8\ub2e4.<\/p>\n<h2>2. \uadf8\ub9ac\ub514 \uc54c\uace0\ub9ac\uc998\uc758 \ud2b9\uc9d5<\/h2>\n<ul>\n<li>\uadfc\uc2dc\uc548\uc801 \uc811\uadfc: \ud604\uc7ac \ubb38\uc81c\uc5d0\uc11c \ucd5c\uc801\uc758 \ud574\ub97c \uc120\ud0dd\ud558\ubbc0\ub85c \ucd5c\uc885 \uacb0\uacfc\uac00 \ucd5c\uc801\uc77c \uac83\uc774\ub77c\ub294 \ubcf4\uc7a5\uc774 \uc5c6\ub2e4.<\/li>\n<li>\ubb38\uc81c\uc5d0 \ub530\ub77c \uc801\ud569: \ubaa8\ub4e0 \ubb38\uc81c\uc5d0\uc11c \uadf8\ub9ac\ub514 \uc54c\uace0\ub9ac\uc998\uc774 \ucd5c\uc801\uc758 \ud574\ub97c \uc81c\uacf5\ud558\uc9c0\ub294 \uc54a\uc9c0\ub9cc, \ud6a8\uc728\uc801\uc73c\ub85c \ud574\uacb0\ud560 \uc218 \uc788\ub294 \ubb38\uc81c\ub3c4 \ub9ce\ub2e4.<\/li>\n<li>\uad6c\uc870\uc801 \ud2b9\uc9d5: \ucd5c\uc801 \ubd80\ubd84 \uad6c\uc870\uc640 \ud0d0\uc695\uc801 \uc120\ud0dd \uc131\uc9c8\uc744 \uac00\uc9c4 \ubb38\uc81c\uc5d0\uc11c \ud6a8\uacfc\uc801\uc774\ub2e4.<\/li>\n<\/ul>\n<h2>3. \ubb38\uc81c \uc124\uba85<\/h2>\n<p>\uc774\ubc88 \uac15\uc88c\uc5d0\uc11c\ub294 \uc624\ub294 \ucf54\ub529\ud14c\uc2a4\ud2b8\uc5d0\uc11c \uc790\uc8fc \ucd9c\uc81c\ub418\ub294 \u201c\uac70\uc2a4\ub984\ub3c8\u201d \ubb38\uc81c\ub97c \ub2e4\ub8f0 \uac83\uc785\ub2c8\ub2e4. \uc774 \ubb38\uc81c\ub294 \ub2e4\uc74c\uacfc \uac19\uc774 \uc815\uc758\ub429\ub2c8\ub2e4:<\/p>\n<blockquote>\n<p>\uac70\uc2a4\ub984\ub3c8\uc744 \ucd5c\uc18c\ud55c\uc758 \ub3d9\uc804 \uac1c\uc218\ub85c \uc8fc\ub294 \ud504\ub85c\uadf8\ub7a8\uc744 \uc791\uc131\ud558\uc2dc\uc624. \ub2e8, \ub3d9\uc804\uc740 500\uc6d0, 100\uc6d0, 50\uc6d0, 10\uc6d0\uc73c\ub85c \uc8fc\uc5b4\uc9c4\ub2e4. \uc8fc\uc5b4\uc9c4 \uae08\uc561\uc774 N \uc6d0\uc77c \ub54c \ucd5c\uc18c \ub3d9\uc804 \uac1c\uc218\ub85c \uac70\uc2ac\ub7ec \uc8fc\ub294 \uc54c\uace0\ub9ac\uc998\uc744 \uad6c\ud604\ud558\uc2dc\uc624.<\/p>\n<\/blockquote>\n<h2>4. \ubb38\uc81c \ubd84\uc11d<\/h2>\n<p>\uac70\uc2a4\ub984\ub3c8\uc744 \ucd5c\uc18c \ub3d9\uc804 \uac1c\uc218\ub85c \uc8fc\uae30 \uc704\ud574\uc11c\ub294 \uac00\uc7a5 \ud070 \ub3d9\uc804\ubd80\ud130 \uc0ac\uc6a9\ud558\uc5ec \uc794\ub3c8\uc744 \uc904\uc5ec\ub098\uac00\ub294 \ubc29\uc2dd\uc774 \ud6a8\uacfc\uc801\uc785\ub2c8\ub2e4. \uc774\ub807\uac8c \ud558\uba74 \ub0a8\uc740 \uae08\uc561\uc774 \uc904\uc5b4\ub4e4\uc218\ub85d \ucd5c\uc801\uc758 \ud574\ub97c \ubcf4\uc7a5\ud560 \uc218 \uc788\uc2b5\ub2c8\ub2e4. \uadf8\ub9ac\ub514 \uc54c\uace0\ub9ac\uc998\uc758 \uc120\ud0dd \uc18d\uc131\uc744 \ud65c\uc6a9\ud558\uc5ec, \ub2e4\uc74c\uacfc \uac19\uc740 \ub2e8\uacc4\ub97c \uac70\uccd0 solution\uc744 \ub3c4\ucd9c\ud560 \uc218 \uc788\uc2b5\ub2c8\ub2e4:<\/p>\n<h3>4.1. \ud544\uc694\ud55c \ub3d9\uc804<\/h3>\n<ul>\n<li>500\uc6d0<\/li>\n<li>100\uc6d0<\/li>\n<li>50\uc6d0<\/li>\n<li>10\uc6d0<\/li>\n<\/ul>\n<h3>4.2. \ub3d9\uc804 \uc0ac\uc6a9 \uacfc\uc815<\/h3>\n<p>\uac00\uc7a5 \ud070 \ub3d9\uc804\ubd80\ud130 \uac00\ub2a5\ud55c \ucd5c\ub300\ud55c \uc0ac\uc6a9\ud569\ub2c8\ub2e4. \uc608\ub97c \ub4e4\uc5b4, 1260\uc6d0\uc744 \uac70\uc2ac\ub7ec \uc904 \uacbd\uc6b0, \uc0ac\uc6a9\ub418\ub294 \ub3d9\uc804\uc758 \uac1c\uc218\ub294 \ub2e4\uc74c\uacfc \uac19\uc2b5\ub2c8\ub2e4:<\/p>\n<ul>\n<li>500\uc6d0 \u2192 2\uac1c (1000\uc6d0)<\/li>\n<li>100\uc6d0 \u2192 2\uac1c (200\uc6d0)<\/li>\n<li>50\uc6d0 \u2192 1\uac1c (50\uc6d0)<\/li>\n<li>10\uc6d0 \u2192 1\uac1c (10\uc6d0)<\/li>\n<\/ul>\n<p>\ucd5c\uc885\uc801\uc73c\ub85c, 1260\uc6d0\uc744 \uac70\uc2ac\ub7ec \uc8fc\uae30 \uc704\ud574 \uc0ac\uc6a9\ub41c \ub3d9\uc804\uc758 \ucd1d \uac1c\uc218\ub294 6\uac1c\uc785\ub2c8\ub2e4.<\/p>\n<h2>5. \uad6c\ud604<\/h2>\n<p>\uc774\uc81c \uc774 \uacfc\uc815\uc744 C++\ub85c \uad6c\ud604\ud574\ubcf4\uaca0\uc2b5\ub2c8\ub2e4. \ub2e4\uc74c\uc740 \uc0c1\uae30 \ub0b4\uc6a9\uc744 \ubc14\ud0d5\uc73c\ub85c \ud55c C++ \ucf54\ub4dc\uc785\ub2c8\ub2e4:<\/p>\n<pre>\n#include &lt;iostream&gt;\n\nusing namespace std;\n\nint main() {\n    int change = 1260; \/\/ \uac70\uc2ac\ub7ec \uc904 \uae08\uc561\n    int coinTypes[] = {500, 100, 50, 10}; \/\/ \uc0ac\uc6a9 \uac00\ub2a5\ud55c \ub3d9\uc804\ub4e4\n    int coinCount = 0; \/\/ \uc0ac\uc6a9\ub41c \ub3d9\uc804 \uac1c\uc218\n\n    for(int i = 0; i &lt; 4; i++) {\n        coinCount += change \/ coinTypes[i]; \/\/ \ud604\uc7ac \ub3d9\uc804\uc73c\ub85c \ub098\ub214\n        change %= coinTypes[i]; \/\/ \ub098\uba38\uc9c0 \uae08\uc561 \uc5c5\ub370\uc774\ud2b8\n    }\n\n    cout &lt;&lt; \"\ucd5c\uc18c \ub3d9\uc804 \uac1c\uc218: \" &lt;&lt; coinCount &lt;&lt; endl;\n    return 0;\n}\n    <\/pre>\n<h2>6. \ucf54\ub4dc \uc124\uba85<\/h2>\n<p>\uc704\uc758 \ucf54\ub4dc\ub294 \uac70\uc2ac\ub7ec \uc904 \uae08\uc561\uc774 1260\uc6d0\uc77c \ub54c \ucd5c\uc18c \ub3d9\uc804 \uac1c\uc218\ub97c \uacc4\uc0b0\ud558\ub294 \ud504\ub85c\uadf8\ub7a8\uc785\ub2c8\ub2e4.<\/p>\n<ul>\n<li><strong>change<\/strong>: \uac70\uc2ac\ub7ec\uc918\uc57c \ud560 \uae08\uc561\uc744 \uc800\uc7a5\ud569\ub2c8\ub2e4.<\/li>\n<li><strong>coinTypes<\/strong>: \uc0ac\uc6a9 \uac00\ub2a5\ud55c \ub3d9\uc804\uc758 \uc885\ub958\ub97c \ubc30\uc5f4\ub85c \uc800\uc7a5\ud569\ub2c8\ub2e4.<\/li>\n<li><strong>coinCount<\/strong>: \uc0ac\uc6a9\ub41c \ub3d9\uc804\uc758 \ucd1d \uac1c\uc218\ub97c \uc800\uc7a5\ud569\ub2c8\ub2e4.<\/li>\n<li>for \ub8e8\ud504\ub97c \uc0ac\uc6a9\ud558\uc5ec \uac01 \ub3d9\uc804\uc758 \uc885\ub958\uc5d0 \ub300\ud574 \uba87 \uac1c\ub97c \uc0ac\uc6a9\ud558\ub294\uc9c0 \uacc4\uc0b0\ud569\ub2c8\ub2e4.<\/li>\n<li>\ub098\uba38\uc9c0 \uae08\uc561\uc744 \uc5c5\ub370\uc774\ud2b8\ud558\uc5ec \ub2e4\uc74c \ub3d9\uc804\uc73c\ub85c \ub118\uc5b4\uac11\ub2c8\ub2e4.<\/li>\n<\/ul>\n<h2>7. \ub3d9\uc791 \uacb0\uacfc<\/h2>\n<p>\uc704 \ucf54\ub4dc\ub97c \uc2e4\ud589\ud558\uba74, \ucf58\uc194\uc5d0 \ub2e4\uc74c\uacfc \uac19\uc740 \uacb0\uacfc\uac00 \ucd9c\ub825\ub429\ub2c8\ub2e4:<\/p>\n<blockquote>\n<p>\ucd5c\uc18c \ub3d9\uc804 \uac1c\uc218: 6<\/p>\n<\/blockquote>\n<h2>8. \ubcf5\uc2b5<\/h2>\n<p>\uc774\ubc88 \uac15\uc88c\uc5d0\uc11c\ub294 \uadf8\ub9ac\ub514 \uc54c\uace0\ub9ac\uc998\uc744 \ud65c\uc6a9\ud558\uc5ec \uac70\uc2a4\ub984\ub3c8 \ubb38\uc81c\ub97c \ud574\uacb0\ud558\ub294 \ubc29\ubc95\uc744 \ubc30\uc6e0\uc2b5\ub2c8\ub2e4. \uadf8\ub9ac\ub514 \uc54c\uace0\ub9ac\uc998\uc758 \ud575\uc2ec\uc740 \ub9e4 \ub2e8\uacc4\uc5d0\uc11c \ucd5c\uc801\uc774\ub77c\uace0 \ud310\ub2e8\ub418\ub294 \uc120\ud0dd\uc744 \ud558\ub294 \uac83\uc785\ub2c8\ub2e4. \uc774 \uc54c\uace0\ub9ac\uc998\uc740 \ub2e4\uc591\ud55c \ubb38\uc81c\ub97c \ud574\uacb0\ud558\ub294 \ub370 \uc788\uc5b4 \ub9e4\uc6b0 \uc720\uc6a9\ud558\uac8c \uc4f0\uc77c \uc218 \uc788\uc2b5\ub2c8\ub2e4.<\/p>\n<h2>9. \uc5f0\uc2b5 \ubb38\uc81c<\/h2>\n<p>\uc544\ub798\uc640 \uac19\uc740 \ub2e4\ub978 \uacfc\uc81c\ub97c \ud1b5\ud574 \uadf8\ub9ac\ub514 \uc54c\uace0\ub9ac\uc998\uc744 \ub354\uc6b1 \uc5f0\uc2b5\ud560 \uc218 \uc788\uc2b5\ub2c8\ub2e4:<\/p>\n<ul>\n<li>\uc8fc\uc5b4\uc9c4 \uae08\uc561\uc5d0\uc11c \uc0ac\uc6a9\ud560 \uc218 \uc788\ub294 \ub3d9\uc804\uc758 \uc885\ub958\ub97c \uc785\ub825\ubc1b\uc544 \ucd5c\uc18c \ub3d9\uc804 \uac1c\uc218\ub97c \uad6c\ud558\uc2dc\uc624.<\/li>\n<li>\uac1c\ubcc4 \ub3d9\uc804\uc758 \uac00\uce58\ub97c \uc784\uc758\ub85c \uc870\uc815\ud560 \uc218 \uc788\ub294 \ud504\ub85c\uadf8\ub7a8 \uc791\uc131.<\/li>\n<li>\uc131\ub2a5 \ud5a5\uc0c1\uc744 \uc704\ud55c \uac1c\uc120\ub41c \uc54c\uace0\ub9ac\uc998\uc744 \uc5f0\uad6c\ud558\uace0 \uc801\uc6a9\ud574\ubcf4\uc2dc\uc624.<\/li>\n<\/ul>\n<h2>10. \ub9c8\ubb34\ub9ac<\/h2>\n<p>\uadf8\ub9ac\ub514 \uc54c\uace0\ub9ac\uc998\uc740 \ub9ce\uc740 \ubb38\uc81c\uc5d0 \ub300\ud55c \ud574\uacb0\ucc45\uc744 \uc81c\uacf5\ud560 \uc218 \uc788\ub294 \uac15\ub825\ud55c \ub3c4\uad6c\uc785\ub2c8\ub2e4. \uc774\ubc88 \uac15\uc88c\uc5d0\uc11c \uc81c\uc2dc\ud55c \ubb38\uc81c\ub97c \ud1b5\ud574 \uc54c\uace0\ub9ac\uc998\uc5d0 \ub300\ud55c \uac1c\ub150 \uc774\ud574\ub294 \ubb3c\ub860 \ucf54\ub4dc \uad6c\ud604 \uc5f0\uc2b5\ub3c4 \ud560 \uc218 \uc788\uc5c8\uae30\ub97c \ubc14\ub78d\ub2c8\ub2e4. \uc55e\uc73c\ub85c\ub3c4 \ub2e4\uc591\ud55c \uc54c\uace0\ub9ac\uc998\uc5d0 \ub300\ud574 \uacc4\uc18d\ud574\uc11c \ud559\uc2b5\ud558\uc5ec, \ub354 \ub098\uc740 \ud504\ub85c\uadf8\ub798\uba38\ub85c \uc131\uc7a5\ud574 \ub098\uac00\uae30\ub97c \ubc14\ub78d\ub2c8\ub2e4.<\/p>\n<footer>\n<p>\u00a9 2023 \uc54c\uace0\ub9ac\uc998 \uacf5\ubd80. All rights reserved.<\/p>\n<\/footer>\n<p><\/body><\/p>\n","protected":false},"excerpt":{"rendered":"<p>1. \uadf8\ub9ac\ub514 \uc54c\uace0\ub9ac\uc998\uc774\ub780? \uadf8\ub9ac\ub514 \uc54c\uace0\ub9ac\uc998(Greedy Algorithm)\uc740 \ubb38\uc81c\ub97c \ud574\uacb0\ud558\ub294 \uacfc\uc815\uc5d0\uc11c \ub9e4 \ub2e8\uacc4\uc5d0\uc11c \ucd5c\uc801\uc774\ub77c\uace0 \uc0dd\uac01\ub418\ub294 \uc120\ud0dd\uc744 \ud558\ub294 \ubc29\uc2dd\uc785\ub2c8\ub2e4. \uc77c\ubc18\uc801\uc73c\ub85c \uadf8\ub9ac\ub514 \uc54c\uace0\ub9ac\uc998\uc740 \ubb38\uc81c\ub97c \ub2e8\uacc4\uc801\uc73c\ub85c \ud574\uacb0\ud558\uba70, \uac01 \ub2e8\uacc4\uc5d0\uc11c\uc758 \ucd5c\uc801 \uc120\ud0dd\uc774 \uc804\uccb4 \ubb38\uc81c\uc5d0 \ub300\ud55c \ucd5c\uc801\ud574\ub97c \ub9cc\ub4e4\uc5b4\ub0bc \uac83\uc774\ub77c\uace0 \uac00\uc815\ud569\ub2c8\ub2e4. \ub2e8, \uc774\ub7ec\ud55c \uadf8\ub9ac\ub514 \uc120\ud0dd\uc774 \ud56d\uc0c1 \ucd5c\uc801\ud574\ub97c \ubcf4\uc7a5\ud558\uc9c0\ub294 \uc54a\uc2b5\ub2c8\ub2e4. 2. \uadf8\ub9ac\ub514 \uc54c\uace0\ub9ac\uc998\uc758 \ud2b9\uc9d5 \uadfc\uc2dc\uc548\uc801 \uc811\uadfc: \ud604\uc7ac \ubb38\uc81c\uc5d0\uc11c \ucd5c\uc801\uc758 \ud574\ub97c \uc120\ud0dd\ud558\ubbc0\ub85c \ucd5c\uc885 \uacb0\uacfc\uac00 \ucd5c\uc801\uc77c &hellip; <a href=\"https:\/\/atmokpo.com\/w\/27572\/\" class=\"more-link\">\ub354 \ubcf4\uae30<span class=\"screen-reader-text\"> &#8220;C++ \ucf54\ub529\ud14c\uc2a4\ud2b8 \uac15\uc88c, \uadf8\ub9ac\ub514 \uc54c\uace0\ub9ac\uc998&#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-27572","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, \uadf8\ub9ac\ub514 \uc54c\uace0\ub9ac\uc998 - \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\/27572\/\" \/>\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, \uadf8\ub9ac\ub514 \uc54c\uace0\ub9ac\uc998 - \ub77c\uc774\ube0c\uc2a4\ub9c8\ud2b8\" \/>\n<meta property=\"og:description\" content=\"1. \uadf8\ub9ac\ub514 \uc54c\uace0\ub9ac\uc998\uc774\ub780? \uadf8\ub9ac\ub514 \uc54c\uace0\ub9ac\uc998(Greedy Algorithm)\uc740 \ubb38\uc81c\ub97c \ud574\uacb0\ud558\ub294 \uacfc\uc815\uc5d0\uc11c \ub9e4 \ub2e8\uacc4\uc5d0\uc11c \ucd5c\uc801\uc774\ub77c\uace0 \uc0dd\uac01\ub418\ub294 \uc120\ud0dd\uc744 \ud558\ub294 \ubc29\uc2dd\uc785\ub2c8\ub2e4. \uc77c\ubc18\uc801\uc73c\ub85c \uadf8\ub9ac\ub514 \uc54c\uace0\ub9ac\uc998\uc740 \ubb38\uc81c\ub97c \ub2e8\uacc4\uc801\uc73c\ub85c \ud574\uacb0\ud558\uba70, \uac01 \ub2e8\uacc4\uc5d0\uc11c\uc758 \ucd5c\uc801 \uc120\ud0dd\uc774 \uc804\uccb4 \ubb38\uc81c\uc5d0 \ub300\ud55c \ucd5c\uc801\ud574\ub97c \ub9cc\ub4e4\uc5b4\ub0bc \uac83\uc774\ub77c\uace0 \uac00\uc815\ud569\ub2c8\ub2e4. \ub2e8, \uc774\ub7ec\ud55c \uadf8\ub9ac\ub514 \uc120\ud0dd\uc774 \ud56d\uc0c1 \ucd5c\uc801\ud574\ub97c \ubcf4\uc7a5\ud558\uc9c0\ub294 \uc54a\uc2b5\ub2c8\ub2e4. 2. \uadf8\ub9ac\ub514 \uc54c\uace0\ub9ac\uc998\uc758 \ud2b9\uc9d5 \uadfc\uc2dc\uc548\uc801 \uc811\uadfc: \ud604\uc7ac \ubb38\uc81c\uc5d0\uc11c \ucd5c\uc801\uc758 \ud574\ub97c \uc120\ud0dd\ud558\ubbc0\ub85c \ucd5c\uc885 \uacb0\uacfc\uac00 \ucd5c\uc801\uc77c &hellip; \ub354 \ubcf4\uae30 &quot;C++ \ucf54\ub529\ud14c\uc2a4\ud2b8 \uac15\uc88c, \uadf8\ub9ac\ub514 \uc54c\uace0\ub9ac\uc998&quot;\" \/>\n<meta property=\"og:url\" content=\"https:\/\/atmokpo.com\/w\/27572\/\" \/>\n<meta property=\"og:site_name\" content=\"\ub77c\uc774\ube0c\uc2a4\ub9c8\ud2b8\" \/>\n<meta property=\"article:published_time\" content=\"2024-10-27T14:42:02+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2024-11-26T07:17:11+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<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/atmokpo.com\/w\/27572\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/atmokpo.com\/w\/27572\/\"},\"author\":{\"name\":\"root\",\"@id\":\"https:\/\/atmokpo.com\/w\/#\/schema\/person\/91b6b3b138fbba0efb4ae64b1abd81d7\"},\"headline\":\"C++ \ucf54\ub529\ud14c\uc2a4\ud2b8 \uac15\uc88c, \uadf8\ub9ac\ub514 \uc54c\uace0\ub9ac\uc998\",\"datePublished\":\"2024-10-27T14:42:02+00:00\",\"dateModified\":\"2024-11-26T07:17:11+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/atmokpo.com\/w\/27572\/\"},\"wordCount\":14,\"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\/27572\/\",\"url\":\"https:\/\/atmokpo.com\/w\/27572\/\",\"name\":\"C++ \ucf54\ub529\ud14c\uc2a4\ud2b8 \uac15\uc88c, \uadf8\ub9ac\ub514 \uc54c\uace0\ub9ac\uc998 - \ub77c\uc774\ube0c\uc2a4\ub9c8\ud2b8\",\"isPartOf\":{\"@id\":\"https:\/\/atmokpo.com\/w\/#website\"},\"datePublished\":\"2024-10-27T14:42:02+00:00\",\"dateModified\":\"2024-11-26T07:17:11+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/atmokpo.com\/w\/27572\/#breadcrumb\"},\"inLanguage\":\"ko-KR\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/atmokpo.com\/w\/27572\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/atmokpo.com\/w\/27572\/#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, \uadf8\ub9ac\ub514 \uc54c\uace0\ub9ac\uc998\"}]},{\"@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, \uadf8\ub9ac\ub514 \uc54c\uace0\ub9ac\uc998 - \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\/27572\/","og_locale":"ko_KR","og_type":"article","og_title":"C++ \ucf54\ub529\ud14c\uc2a4\ud2b8 \uac15\uc88c, \uadf8\ub9ac\ub514 \uc54c\uace0\ub9ac\uc998 - \ub77c\uc774\ube0c\uc2a4\ub9c8\ud2b8","og_description":"1. \uadf8\ub9ac\ub514 \uc54c\uace0\ub9ac\uc998\uc774\ub780? \uadf8\ub9ac\ub514 \uc54c\uace0\ub9ac\uc998(Greedy Algorithm)\uc740 \ubb38\uc81c\ub97c \ud574\uacb0\ud558\ub294 \uacfc\uc815\uc5d0\uc11c \ub9e4 \ub2e8\uacc4\uc5d0\uc11c \ucd5c\uc801\uc774\ub77c\uace0 \uc0dd\uac01\ub418\ub294 \uc120\ud0dd\uc744 \ud558\ub294 \ubc29\uc2dd\uc785\ub2c8\ub2e4. \uc77c\ubc18\uc801\uc73c\ub85c \uadf8\ub9ac\ub514 \uc54c\uace0\ub9ac\uc998\uc740 \ubb38\uc81c\ub97c \ub2e8\uacc4\uc801\uc73c\ub85c \ud574\uacb0\ud558\uba70, \uac01 \ub2e8\uacc4\uc5d0\uc11c\uc758 \ucd5c\uc801 \uc120\ud0dd\uc774 \uc804\uccb4 \ubb38\uc81c\uc5d0 \ub300\ud55c \ucd5c\uc801\ud574\ub97c \ub9cc\ub4e4\uc5b4\ub0bc \uac83\uc774\ub77c\uace0 \uac00\uc815\ud569\ub2c8\ub2e4. \ub2e8, \uc774\ub7ec\ud55c \uadf8\ub9ac\ub514 \uc120\ud0dd\uc774 \ud56d\uc0c1 \ucd5c\uc801\ud574\ub97c \ubcf4\uc7a5\ud558\uc9c0\ub294 \uc54a\uc2b5\ub2c8\ub2e4. 2. \uadf8\ub9ac\ub514 \uc54c\uace0\ub9ac\uc998\uc758 \ud2b9\uc9d5 \uadfc\uc2dc\uc548\uc801 \uc811\uadfc: \ud604\uc7ac \ubb38\uc81c\uc5d0\uc11c \ucd5c\uc801\uc758 \ud574\ub97c \uc120\ud0dd\ud558\ubbc0\ub85c \ucd5c\uc885 \uacb0\uacfc\uac00 \ucd5c\uc801\uc77c &hellip; \ub354 \ubcf4\uae30 \"C++ \ucf54\ub529\ud14c\uc2a4\ud2b8 \uac15\uc88c, \uadf8\ub9ac\ub514 \uc54c\uace0\ub9ac\uc998\"","og_url":"https:\/\/atmokpo.com\/w\/27572\/","og_site_name":"\ub77c\uc774\ube0c\uc2a4\ub9c8\ud2b8","article_published_time":"2024-10-27T14:42:02+00:00","article_modified_time":"2024-11-26T07:17:11+00:00","author":"root","twitter_card":"summary_large_image","twitter_creator":"@bebubo4","twitter_site":"@bebubo4","twitter_misc":{"\uae00\uc4f4\uc774":"root"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/atmokpo.com\/w\/27572\/#article","isPartOf":{"@id":"https:\/\/atmokpo.com\/w\/27572\/"},"author":{"name":"root","@id":"https:\/\/atmokpo.com\/w\/#\/schema\/person\/91b6b3b138fbba0efb4ae64b1abd81d7"},"headline":"C++ \ucf54\ub529\ud14c\uc2a4\ud2b8 \uac15\uc88c, \uadf8\ub9ac\ub514 \uc54c\uace0\ub9ac\uc998","datePublished":"2024-10-27T14:42:02+00:00","dateModified":"2024-11-26T07:17:11+00:00","mainEntityOfPage":{"@id":"https:\/\/atmokpo.com\/w\/27572\/"},"wordCount":14,"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\/27572\/","url":"https:\/\/atmokpo.com\/w\/27572\/","name":"C++ \ucf54\ub529\ud14c\uc2a4\ud2b8 \uac15\uc88c, \uadf8\ub9ac\ub514 \uc54c\uace0\ub9ac\uc998 - \ub77c\uc774\ube0c\uc2a4\ub9c8\ud2b8","isPartOf":{"@id":"https:\/\/atmokpo.com\/w\/#website"},"datePublished":"2024-10-27T14:42:02+00:00","dateModified":"2024-11-26T07:17:11+00:00","breadcrumb":{"@id":"https:\/\/atmokpo.com\/w\/27572\/#breadcrumb"},"inLanguage":"ko-KR","potentialAction":[{"@type":"ReadAction","target":["https:\/\/atmokpo.com\/w\/27572\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/atmokpo.com\/w\/27572\/#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, \uadf8\ub9ac\ub514 \uc54c\uace0\ub9ac\uc998"}]},{"@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\/27572","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=27572"}],"version-history":[{"count":1,"href":"https:\/\/atmokpo.com\/w\/wp-json\/wp\/v2\/posts\/27572\/revisions"}],"predecessor-version":[{"id":27573,"href":"https:\/\/atmokpo.com\/w\/wp-json\/wp\/v2\/posts\/27572\/revisions\/27573"}],"wp:attachment":[{"href":"https:\/\/atmokpo.com\/w\/wp-json\/wp\/v2\/media?parent=27572"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/atmokpo.com\/w\/wp-json\/wp\/v2\/categories?post=27572"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/atmokpo.com\/w\/wp-json\/wp\/v2\/tags?post=27572"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}