{"id":27720,"date":"2024-10-27T14:43:22","date_gmt":"2024-10-27T14:43:22","guid":{"rendered":"http:\/\/atmokpo.com\/w\/?p=27720"},"modified":"2024-11-26T07:15:51","modified_gmt":"2024-11-26T07:15:51","slug":"c-%ec%bd%94%eb%94%a9%ed%85%8c%ec%8a%a4%ed%8a%b8-%ea%b0%95%ec%a2%8c-%ec%a0%88%eb%8c%93%ea%b0%92-%ed%9e%99-%ea%b5%ac%ed%98%84%ed%95%98%ea%b8%b0-2","status":"publish","type":"post","link":"https:\/\/atmokpo.com\/w\/27720\/","title":{"rendered":"C++ \ucf54\ub529\ud14c\uc2a4\ud2b8 \uac15\uc88c, \uc808\ub313\uac12 \ud799 \uad6c\ud604\ud558\uae30"},"content":{"rendered":"<p><body><\/p>\n<p>\uc774\ubc88 \uac15\uc88c\uc5d0\uc11c\ub294 \uc808\ub313\uac12 \ud799\uc744 \uad6c\ud604\ud558\ub294 \uc54c\uace0\ub9ac\uc998 \ubb38\uc81c\ub97c \ub2e4\ub8e8\uace0\uc790 \ud569\ub2c8\ub2e4. \uc774 \ubb38\uc81c\ub294 C++ \ud504\ub85c\uadf8\ub798\ubc0d\uc5d0\uc11c \uc790\uc8fc \ucd9c\uc81c\ub418\ub294 \uc720\ud615 \uc911 \ud558\ub098\ub85c, \uc6b0\uc120\uc21c\uc704 \ud050(Priority Queue)\ub97c \uc0ac\uc6a9\ud558\uc5ec \ud574\uacb0\ud560 \uc218 \uc788\uc2b5\ub2c8\ub2e4. \uc808\ub313\uac12 \ud799\uc740 \ud2b9\uc815 \uc22b\uc790\uc758 \uc808\ub313\uac12\uc744 \uae30\uc900\uc73c\ub85c \uc815\ub82c\ud558\ub294 \uc790\ub8cc\uad6c\uc870\uc785\ub2c8\ub2e4.<\/p>\n<h2>\ubb38\uc81c \uc124\uba85<\/h2>\n<p>\uc808\ub313\uac12 \ud799\uc740 \ub2e4\uc74c\uacfc \uac19\uc740 \uc5f0\uc0b0\uc744 \uc9c0\uc6d0\ud569\ub2c8\ub2e4:<\/p>\n<ul>\n<li>\uc815\uc218 x\ub97c \ud799\uc5d0 \uc0bd\uc785\ud569\ub2c8\ub2e4.<\/li>\n<li>\uac00\uc7a5 \uc791\uc740 \uc808\ub313\uac12\uc744 \uac00\uc9c4 \uc815\uc218\ub97c \ud799\uc5d0\uc11c \uc81c\uac70\ud558\uace0 \ubc18\ud658\ud569\ub2c8\ub2e4. \ub9cc\uc57d \uc808\ub313\uac12\uc774 \uac19\uc740 \uc218\uac00 \uc5ec\ub7ec \uac1c\uc77c \uacbd\uc6b0, \ub354 \uc791\uc740 \uac12\uc744 \ubc18\ud658\ud569\ub2c8\ub2e4. \ub9cc\uc57d \ud799\uc774 \ube44\uc5b4\uc788\ub2e4\uba74 0\uc744 \ubc18\ud658\ud569\ub2c8\ub2e4.<\/li>\n<\/ul>\n<h3>\uc785\ub825<\/h3>\n<p>\uccab \ubc88\uc9f8 \uc904\uc5d0 \uc5f0\uc0b0\uc758 \uac1c\uc218 <code>N<\/code>(1 \u2264 <code>N<\/code> \u2264 100,000)\uc774 \uc8fc\uc5b4\uc9d1\ub2c8\ub2e4. \ub2e4\uc74c <code>N<\/code>\uac1c\uc758 \uc904\uc5d0\ub294 \uc2e4\ud589\ud560 \uc5f0\uc0b0\uc774 \uc8fc\uc5b4\uc9d1\ub2c8\ub2e4. \uc5f0\uc0b0\uc740 \ub2e4\uc74c \ub450 \uac00\uc9c0\ub85c \ub098\ub269\ub2c8\ub2e4:<\/p>\n<ul>\n<li><code>\uc0bd\uc785<\/code>: <code>0<\/code> <code>x<\/code> (\u221210<sup>9<\/sup> \u2264 <code>x<\/code> \u2264 10<sup>9<\/sup>) \ud615\ud0dc\ub85c \uc8fc\uc5b4\uc9c0\uba70, \uc808\ub313\uac12 \ud799\uc5d0 <code>x<\/code>\ub97c \uc0bd\uc785\ud569\ub2c8\ub2e4.<\/li>\n<li><code>\uc0ad\uc81c<\/code>: <code>0<\/code> \ud615\ud0dc\ub85c \uc8fc\uc5b4\uc9c0\uba70, \uc808\ub313\uac12 \ud799\uc5d0\uc11c \uac00\uc7a5 \uc791\uc740 \uc808\ub313\uac12\uc744 \uac00\uc9c4 \uc815\uc218\ub97c \uc81c\uac70\ud558\uace0 \ubc18\ud658\ud569\ub2c8\ub2e4.<\/li>\n<\/ul>\n<h3>\ucd9c\ub825<\/h3>\n<p>\uc0ad\uc81c \uc5f0\uc0b0\uc758 \uacb0\uacfc\ub97c \ud55c \uc904\uc5d0 \ud558\ub098\uc529 \ucd9c\ub825\ud569\ub2c8\ub2e4.<\/p>\n<h2>\uc608\uc81c \uc785\ub825<\/h2>\n<pre>\n10\n1\n-1\n0\n1\n0\n-1\n0\n0\n0\n0\n<\/pre>\n<h2>\uc608\uc81c \ucd9c\ub825<\/h2>\n<pre>\n-1\n1\n0\n0\n0\n<\/pre>\n<h2>\ubb38\uc81c \uc811\uadfc<\/h2>\n<p>\uc774 \ubb38\uc81c\ub97c \ud574\uacb0\ud558\uae30 \uc704\ud574 \uc6b0\uc120\uc21c\uc704 \ud050\ub97c \uc0ac\uc6a9\ud560 \uac83\uc785\ub2c8\ub2e4. C++ \ud45c\uc900 \ub77c\uc774\ube0c\ub7ec\ub9ac\uc5d0\uc11c\ub294 <code>std::priority_queue<\/code>\ub97c \uc81c\uacf5\ud558\ub294\ub370, \uae30\ubcf8\uc801\uc73c\ub85c \ucd5c\ub300 \ud799\uc73c\ub85c \uc791\ub3d9\ud569\ub2c8\ub2e4. \ud558\uc9c0\ub9cc \uc6b0\ub9ac\ub294 \uc808\ub313\uac12\uc744 \uae30\uc900\uc73c\ub85c \ucd5c\uc18c \ud799\uc744 \ub9cc\ub4e4\uc5b4\uc57c \ud569\ub2c8\ub2e4. \ub530\ub77c\uc11c <code>std::priority_queue<\/code>\ub97c \ucee4\uc2a4\ud130\ub9c8\uc774\uc9d5\ud558\uc5ec \uc774\ub97c \uad6c\ud604\ud560 \uac83\uc785\ub2c8\ub2e4.<\/p>\n<h3>\ud799 \uad6c\ud604<\/h3>\n<p>\uc808\ub313\uac12 \ud799\uc744 \uad6c\ud604\ud558\uae30 \uc704\ud574 \ub2e4\uc74c\uacfc \uac19\uc740 \ube44\uad50 \ud568\uc218\ub97c \uc815\uc758\ud560 \uac83\uc785\ub2c8\ub2e4:<\/p>\n<pre>\nstruct Compare {\n    bool operator()(int a, int b) {\n        if (abs(a) == abs(b)) {\n            return a &gt; b; \/\/ \uc808\ub313\uac12\uc774 \uac19\uc73c\uba74 \ub354 \uc791\uc740 \uac12\uc744 \uc120\ud0dd\n        }\n        return abs(a) &gt; abs(b); \/\/ \uc808\ub313\uac12 \uae30\uc900\uc73c\ub85c \uc120\ud0dd\n    }\n};\n<\/pre>\n<p>\uc704\uc640 \uac19\uc740 \ube44\uad50 \ud568\uc218\ub97c \uae30\uc900\uc73c\ub85c \uc6b0\uc120\uc21c\uc704 \ud050\ub97c \uc815\uc758\ud558\uace0, \uc0bd\uc785 \uc5f0\uc0b0 \ubc0f \uc0ad\uc81c \uc5f0\uc0b0\uc744 \uc218\ud589\ud560 \uc218 \uc788\uc2b5\ub2c8\ub2e4.<\/p>\n<h2>C++ \ucf54\ub4dc \uad6c\ud604<\/h2>\n<pre>\n#include <iostream>\n#include <queue>\n#include <vector>\n#include <cmath>\n\nusing namespace std;\n\n\/\/ \ube44\uad50 \uc5f0\uc0b0\uc790 \uc815\uc758\nstruct Compare {\n    bool operator()(int a, int b) {\n        if (abs(a) == abs(b)) {\n            return a &gt; b; \/\/ \uc808\ub313\uac12\uc774 \uac19\uc73c\uba74 \ub354 \uc791\uc740 \uac12\uc744 \uc120\ud0dd\n        }\n        return abs(a) &gt; abs(b); \/\/ \uc808\ub313\uac12\uc744 \uae30\uc900\uc73c\ub85c \uc120\ud0dd\n    }\n};\n\nint main() {\n    int N;\n    cin &gt;&gt; N;\n\n    priority_queue<int, vector<int=\"\">, Compare&gt; pq; \/\/ \ucee4\uc2a4\ud130\ub9c8\uc774\uc9d5\ub41c \uc6b0\uc120\uc21c\uc704 \ud050\n    \n    for (int i = 0; i &lt; N; i++) {\n        int x;\n        cin &gt;&gt; x;\n        if (x == 0) {\n            \/\/ \uc0ad\uc81c \uc5f0\uc0b0\n            if (pq.empty()) {\n                cout &lt;&lt; 0 &lt;&lt; endl; \/\/ \ube44\uc5b4\uc788\uc744 \uacbd\uc6b0 0 \ucd9c\ub825\n            } else {\n                cout &lt;&lt; pq.top() &lt;&lt; endl; \/\/ \uc808\ub313\uac12 \ud799\uc5d0\uc11c \uac00\uc7a5 \uc791\uc740 \uac12\uc744 \ucd9c\ub825\n                pq.pop(); \/\/ \ud799\uc5d0\uc11c \uc0ad\uc81c\n            }\n        } else {\n            \/\/ \uc0bd\uc785 \uc5f0\uc0b0\n            pq.push(x); \/\/ \ud799\uc5d0 \uac12 \ucd94\uac00\n        }\n    }\n\n    return 0;\n}\n<\/int,><\/cmath><\/vector><\/queue><\/iostream><\/pre>\n<h2>\ucf54\ub4dc \uc124\uba85<\/h2>\n<p>\uc704 C++ \ucf54\ub4dc\ub294 \uc808\ub313\uac12 \ud799\uc744 \uad6c\ud604\ud569\ub2c8\ub2e4:<\/p>\n<ul>\n<li><code>priority_queue<\/code>\uc5d0\uc11c <code>Compare<\/code> \uad6c\uc870\uccb4\ub97c \uc0ac\uc6a9\ud558\uc5ec \uc6b0\uc120\uc21c\uc704\ub97c \uc124\uc815\ud558\uace0 \uc788\uc2b5\ub2c8\ub2e4.<\/li>\n<li><code>main<\/code> \ud568\uc218 \ub0b4\uc5d0\uc11c \uc785\ub825\uc744 \uc77d\uace0, <code>0<\/code> \uc785\ub825 \uc2dc\uc5d0\ub294 \ud799\uc5d0\uc11c \ub370\uc774\ud130\ub97c \uc0ad\uc81c\ud558\uace0 \ucd9c\ub825\ud558\uba70, \ub2e4\ub978 \uc22b\uc790\ub294 \ud799\uc5d0 \uc0bd\uc785\ud569\ub2c8\ub2e4.<\/li>\n<\/ul>\n<h2>\uc2dc\uac04 \ubcf5\uc7a1\ub3c4 \ubd84\uc11d<\/h2>\n<p>\uc774 \uc54c\uace0\ub9ac\uc998\uc758 \uc2dc\uac04 \ubcf5\uc7a1\ub3c4\ub294 \ub2e4\uc74c\uacfc \uac19\uc2b5\ub2c8\ub2e4:<\/p>\n<ul>\n<li>\uc0bd\uc785 \uc5f0\uc0b0: O(log N)<\/li>\n<li>\uc0ad\uc81c \uc5f0\uc0b0: O(log N)<\/li>\n<\/ul>\n<p>\ub530\ub77c\uc11c \ucd1d <code>N<\/code>\uac1c\uc758 \uc5f0\uc0b0\uc744 \uc218\ud589\ud560 \uacbd\uc6b0, \uc804\uccb4 \uc2dc\uac04 \ubcf5\uc7a1\ub3c4\ub294 O(N log N)\uc785\ub2c8\ub2e4.<\/p>\n<h3>\uacb0\ub860<\/h3>\n<p>\uc774\ubc88 \uac15\uc88c\uc5d0\uc11c\ub294 C++\ub85c \uc808\ub313\uac12 \ud799\uc744 \uad6c\ud604\ud558\ub294 \ubc29\ubc95\uc744 \ubc30\uc6b0\uace0, \uc6b0\uc120\uc21c\uc704 \ud050\ub97c \ud65c\uc6a9\ud558\uc5ec \ud6a8\uc728\uc801\uc73c\ub85c \ub370\uc774\ud130\ub97c \uad00\ub9ac\ud558\ub294 \ubc29\ubc95\uc744 \uc54c\uc544\ubcf4\uc558\uc2b5\ub2c8\ub2e4. \uc774 \ubb38\uc81c\ub294 \ucf54\ub529 \ud14c\uc2a4\ud2b8\uc5d0\uc11c \uc911\uc694\ud55c \uac1c\ub150 \uc911 \ud558\ub098\uc774\ubbc0\ub85c, \uc5f0\uc2b5\uc744 \ud1b5\ud574 \uc774\ud574\ub97c \uae4a\uc774 \uc788\ub294 \uac83\uc73c\ub85c \ubc1c\uc804\uc2dc\ud0a4\uae30\ub97c \ubc14\ub78d\ub2c8\ub2e4.<\/p>\n<p><\/body><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\uc774\ubc88 \uac15\uc88c\uc5d0\uc11c\ub294 \uc808\ub313\uac12 \ud799\uc744 \uad6c\ud604\ud558\ub294 \uc54c\uace0\ub9ac\uc998 \ubb38\uc81c\ub97c \ub2e4\ub8e8\uace0\uc790 \ud569\ub2c8\ub2e4. \uc774 \ubb38\uc81c\ub294 C++ \ud504\ub85c\uadf8\ub798\ubc0d\uc5d0\uc11c \uc790\uc8fc \ucd9c\uc81c\ub418\ub294 \uc720\ud615 \uc911 \ud558\ub098\ub85c, \uc6b0\uc120\uc21c\uc704 \ud050(Priority Queue)\ub97c \uc0ac\uc6a9\ud558\uc5ec \ud574\uacb0\ud560 \uc218 \uc788\uc2b5\ub2c8\ub2e4. \uc808\ub313\uac12 \ud799\uc740 \ud2b9\uc815 \uc22b\uc790\uc758 \uc808\ub313\uac12\uc744 \uae30\uc900\uc73c\ub85c \uc815\ub82c\ud558\ub294 \uc790\ub8cc\uad6c\uc870\uc785\ub2c8\ub2e4. \ubb38\uc81c \uc124\uba85 \uc808\ub313\uac12 \ud799\uc740 \ub2e4\uc74c\uacfc \uac19\uc740 \uc5f0\uc0b0\uc744 \uc9c0\uc6d0\ud569\ub2c8\ub2e4: \uc815\uc218 x\ub97c \ud799\uc5d0 \uc0bd\uc785\ud569\ub2c8\ub2e4. \uac00\uc7a5 \uc791\uc740 \uc808\ub313\uac12\uc744 \uac00\uc9c4 \uc815\uc218\ub97c \ud799\uc5d0\uc11c \uc81c\uac70\ud558\uace0 \ubc18\ud658\ud569\ub2c8\ub2e4. \ub9cc\uc57d \uc808\ub313\uac12\uc774 &hellip; <a href=\"https:\/\/atmokpo.com\/w\/27720\/\" class=\"more-link\">\ub354 \ubcf4\uae30<span class=\"screen-reader-text\"> &#8220;C++ \ucf54\ub529\ud14c\uc2a4\ud2b8 \uac15\uc88c, \uc808\ub313\uac12 \ud799 \uad6c\ud604\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-27720","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, \uc808\ub313\uac12 \ud799 \uad6c\ud604\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\/27720\/\" \/>\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, \uc808\ub313\uac12 \ud799 \uad6c\ud604\ud558\uae30 - \ub77c\uc774\ube0c\uc2a4\ub9c8\ud2b8\" \/>\n<meta property=\"og:description\" content=\"\uc774\ubc88 \uac15\uc88c\uc5d0\uc11c\ub294 \uc808\ub313\uac12 \ud799\uc744 \uad6c\ud604\ud558\ub294 \uc54c\uace0\ub9ac\uc998 \ubb38\uc81c\ub97c \ub2e4\ub8e8\uace0\uc790 \ud569\ub2c8\ub2e4. \uc774 \ubb38\uc81c\ub294 C++ \ud504\ub85c\uadf8\ub798\ubc0d\uc5d0\uc11c \uc790\uc8fc \ucd9c\uc81c\ub418\ub294 \uc720\ud615 \uc911 \ud558\ub098\ub85c, \uc6b0\uc120\uc21c\uc704 \ud050(Priority Queue)\ub97c \uc0ac\uc6a9\ud558\uc5ec \ud574\uacb0\ud560 \uc218 \uc788\uc2b5\ub2c8\ub2e4. \uc808\ub313\uac12 \ud799\uc740 \ud2b9\uc815 \uc22b\uc790\uc758 \uc808\ub313\uac12\uc744 \uae30\uc900\uc73c\ub85c \uc815\ub82c\ud558\ub294 \uc790\ub8cc\uad6c\uc870\uc785\ub2c8\ub2e4. \ubb38\uc81c \uc124\uba85 \uc808\ub313\uac12 \ud799\uc740 \ub2e4\uc74c\uacfc \uac19\uc740 \uc5f0\uc0b0\uc744 \uc9c0\uc6d0\ud569\ub2c8\ub2e4: \uc815\uc218 x\ub97c \ud799\uc5d0 \uc0bd\uc785\ud569\ub2c8\ub2e4. \uac00\uc7a5 \uc791\uc740 \uc808\ub313\uac12\uc744 \uac00\uc9c4 \uc815\uc218\ub97c \ud799\uc5d0\uc11c \uc81c\uac70\ud558\uace0 \ubc18\ud658\ud569\ub2c8\ub2e4. \ub9cc\uc57d \uc808\ub313\uac12\uc774 &hellip; \ub354 \ubcf4\uae30 &quot;C++ \ucf54\ub529\ud14c\uc2a4\ud2b8 \uac15\uc88c, \uc808\ub313\uac12 \ud799 \uad6c\ud604\ud558\uae30&quot;\" \/>\n<meta property=\"og:url\" content=\"https:\/\/atmokpo.com\/w\/27720\/\" \/>\n<meta property=\"og:site_name\" content=\"\ub77c\uc774\ube0c\uc2a4\ub9c8\ud2b8\" \/>\n<meta property=\"article:published_time\" content=\"2024-10-27T14:43:22+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2024-11-26T07:15:51+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\/27720\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/atmokpo.com\/w\/27720\/\"},\"author\":{\"name\":\"root\",\"@id\":\"https:\/\/atmokpo.com\/w\/#\/schema\/person\/91b6b3b138fbba0efb4ae64b1abd81d7\"},\"headline\":\"C++ \ucf54\ub529\ud14c\uc2a4\ud2b8 \uac15\uc88c, \uc808\ub313\uac12 \ud799 \uad6c\ud604\ud558\uae30\",\"datePublished\":\"2024-10-27T14:43:22+00:00\",\"dateModified\":\"2024-11-26T07:15:51+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/atmokpo.com\/w\/27720\/\"},\"wordCount\":19,\"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\/27720\/\",\"url\":\"https:\/\/atmokpo.com\/w\/27720\/\",\"name\":\"C++ \ucf54\ub529\ud14c\uc2a4\ud2b8 \uac15\uc88c, \uc808\ub313\uac12 \ud799 \uad6c\ud604\ud558\uae30 - \ub77c\uc774\ube0c\uc2a4\ub9c8\ud2b8\",\"isPartOf\":{\"@id\":\"https:\/\/atmokpo.com\/w\/#website\"},\"datePublished\":\"2024-10-27T14:43:22+00:00\",\"dateModified\":\"2024-11-26T07:15:51+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/atmokpo.com\/w\/27720\/#breadcrumb\"},\"inLanguage\":\"ko-KR\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/atmokpo.com\/w\/27720\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/atmokpo.com\/w\/27720\/#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, \uc808\ub313\uac12 \ud799 \uad6c\ud604\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, \uc808\ub313\uac12 \ud799 \uad6c\ud604\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\/27720\/","og_locale":"ko_KR","og_type":"article","og_title":"C++ \ucf54\ub529\ud14c\uc2a4\ud2b8 \uac15\uc88c, \uc808\ub313\uac12 \ud799 \uad6c\ud604\ud558\uae30 - \ub77c\uc774\ube0c\uc2a4\ub9c8\ud2b8","og_description":"\uc774\ubc88 \uac15\uc88c\uc5d0\uc11c\ub294 \uc808\ub313\uac12 \ud799\uc744 \uad6c\ud604\ud558\ub294 \uc54c\uace0\ub9ac\uc998 \ubb38\uc81c\ub97c \ub2e4\ub8e8\uace0\uc790 \ud569\ub2c8\ub2e4. \uc774 \ubb38\uc81c\ub294 C++ \ud504\ub85c\uadf8\ub798\ubc0d\uc5d0\uc11c \uc790\uc8fc \ucd9c\uc81c\ub418\ub294 \uc720\ud615 \uc911 \ud558\ub098\ub85c, \uc6b0\uc120\uc21c\uc704 \ud050(Priority Queue)\ub97c \uc0ac\uc6a9\ud558\uc5ec \ud574\uacb0\ud560 \uc218 \uc788\uc2b5\ub2c8\ub2e4. \uc808\ub313\uac12 \ud799\uc740 \ud2b9\uc815 \uc22b\uc790\uc758 \uc808\ub313\uac12\uc744 \uae30\uc900\uc73c\ub85c \uc815\ub82c\ud558\ub294 \uc790\ub8cc\uad6c\uc870\uc785\ub2c8\ub2e4. \ubb38\uc81c \uc124\uba85 \uc808\ub313\uac12 \ud799\uc740 \ub2e4\uc74c\uacfc \uac19\uc740 \uc5f0\uc0b0\uc744 \uc9c0\uc6d0\ud569\ub2c8\ub2e4: \uc815\uc218 x\ub97c \ud799\uc5d0 \uc0bd\uc785\ud569\ub2c8\ub2e4. \uac00\uc7a5 \uc791\uc740 \uc808\ub313\uac12\uc744 \uac00\uc9c4 \uc815\uc218\ub97c \ud799\uc5d0\uc11c \uc81c\uac70\ud558\uace0 \ubc18\ud658\ud569\ub2c8\ub2e4. \ub9cc\uc57d \uc808\ub313\uac12\uc774 &hellip; \ub354 \ubcf4\uae30 \"C++ \ucf54\ub529\ud14c\uc2a4\ud2b8 \uac15\uc88c, \uc808\ub313\uac12 \ud799 \uad6c\ud604\ud558\uae30\"","og_url":"https:\/\/atmokpo.com\/w\/27720\/","og_site_name":"\ub77c\uc774\ube0c\uc2a4\ub9c8\ud2b8","article_published_time":"2024-10-27T14:43:22+00:00","article_modified_time":"2024-11-26T07:15:51+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\/27720\/#article","isPartOf":{"@id":"https:\/\/atmokpo.com\/w\/27720\/"},"author":{"name":"root","@id":"https:\/\/atmokpo.com\/w\/#\/schema\/person\/91b6b3b138fbba0efb4ae64b1abd81d7"},"headline":"C++ \ucf54\ub529\ud14c\uc2a4\ud2b8 \uac15\uc88c, \uc808\ub313\uac12 \ud799 \uad6c\ud604\ud558\uae30","datePublished":"2024-10-27T14:43:22+00:00","dateModified":"2024-11-26T07:15:51+00:00","mainEntityOfPage":{"@id":"https:\/\/atmokpo.com\/w\/27720\/"},"wordCount":19,"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\/27720\/","url":"https:\/\/atmokpo.com\/w\/27720\/","name":"C++ \ucf54\ub529\ud14c\uc2a4\ud2b8 \uac15\uc88c, \uc808\ub313\uac12 \ud799 \uad6c\ud604\ud558\uae30 - \ub77c\uc774\ube0c\uc2a4\ub9c8\ud2b8","isPartOf":{"@id":"https:\/\/atmokpo.com\/w\/#website"},"datePublished":"2024-10-27T14:43:22+00:00","dateModified":"2024-11-26T07:15:51+00:00","breadcrumb":{"@id":"https:\/\/atmokpo.com\/w\/27720\/#breadcrumb"},"inLanguage":"ko-KR","potentialAction":[{"@type":"ReadAction","target":["https:\/\/atmokpo.com\/w\/27720\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/atmokpo.com\/w\/27720\/#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, \uc808\ub313\uac12 \ud799 \uad6c\ud604\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\/27720","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=27720"}],"version-history":[{"count":1,"href":"https:\/\/atmokpo.com\/w\/wp-json\/wp\/v2\/posts\/27720\/revisions"}],"predecessor-version":[{"id":27721,"href":"https:\/\/atmokpo.com\/w\/wp-json\/wp\/v2\/posts\/27720\/revisions\/27721"}],"wp:attachment":[{"href":"https:\/\/atmokpo.com\/w\/wp-json\/wp\/v2\/media?parent=27720"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/atmokpo.com\/w\/wp-json\/wp\/v2\/categories?post=27720"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/atmokpo.com\/w\/wp-json\/wp\/v2\/tags?post=27720"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}