{"id":27798,"date":"2024-10-27T14:43:54","date_gmt":"2024-10-27T14:43:54","guid":{"rendered":"http:\/\/atmokpo.com\/w\/?p=27798"},"modified":"2024-11-26T07:14:56","modified_gmt":"2024-11-26T07:14:56","slug":"c-%ec%bd%94%eb%94%a9%ed%85%8c%ec%8a%a4%ed%8a%b8-%ea%b0%95%ec%a2%8c-%ed%99%95%ec%9e%a5-%ec%9c%a0%ed%81%b4%eb%a6%ac%eb%93%9c-%ed%98%b8%ec%a0%9c%eb%b2%95-2","status":"publish","type":"post","link":"https:\/\/atmokpo.com\/w\/27798\/","title":{"rendered":"C++ \ucf54\ub529\ud14c\uc2a4\ud2b8 \uac15\uc88c, \ud655\uc7a5 \uc720\ud074\ub9ac\ub4dc \ud638\uc81c\ubc95"},"content":{"rendered":"<article>\n<section>\n<h2>\uc11c\ub860<\/h2>\n<p>\n            \ud604\ub300 \uac1c\ubc1c \ud658\uacbd\uc5d0\uc11c\ub294 \uc218\ub9ce\uc740 \ubb38\uc81c\ub97c \ud574\uacb0\ud558\uae30 \uc704\ud574 \ub2e4\uc591\ud55c \uc54c\uace0\ub9ac\uc998\uc774 \ud544\uc694\ud569\ub2c8\ub2e4. \uadf8 \uc911\uc5d0\uc11c\ub3c4 \uc218\ud559\uc801 \uae30\ubc95\uc744 \ud65c\uc6a9\ud55c \uc54c\uace0\ub9ac\uc998, \ud2b9\ud788 \u201c\ud655\uc7a5 \uc720\ud074\ub9ac\ub4dc \ud638\uc81c\ubc95(Extended Euclidean Algorithm)\u201d\uc740 \ub9e4\uc6b0 \uc720\uc6a9\ud55c \ub3c4\uad6c\uc785\ub2c8\ub2e4. \uc774 \uac15\uc88c\uc5d0\uc11c\ub294 \ud655\uc7a5 \uc720\ud074\ub9ac\ub4dc \ud638\uc81c\ubc95\uc758 \uc774\ub860\uacfc \ucf54\ub529\ud14c\uc2a4\ud2b8\uc5d0\uc11c \uc790\uc8fc \ub4f1\uc7a5\ud558\ub294 \ubb38\uc81c\ub97c \ud1b5\ud574 \uae4a\uc774 \uc788\uac8c \ub2e4\ub8e8\uc5b4 \ubcf4\uaca0\uc2b5\ub2c8\ub2e4. \uc774 \ub0b4\uc6a9\uc744 \ud1b5\ud574 \ud655\uc7a5 \uc720\ud074\ub9ac\ub4dc \ud638\uc81c\ubc95\uc744 \uccb4\uacc4\uc801\uc73c\ub85c \uc774\ud574\ud558\uace0 C++\uc744 \ud65c\uc6a9\ud558\uc5ec \uc2e4\uc804 \ubb38\uc81c\ub97c \ud574\uacb0\ud558\ub294 \ub2a5\ub825\uc744 \uae30\ub97c \uc218 \uc788\uac8c \ub420 \uac83\uc785\ub2c8\ub2e4.\n        <\/p>\n<\/section>\n<section>\n<h2>\ud655\uc7a5 \uc720\ud074\ub9ac\ub4dc \ud638\uc81c\ubc95\uc774\ub780?<\/h2>\n<p>\n            \uc720\ud074\ub9ac\ub4dc \ud638\uc81c\ubc95\uc740 \ub450 \uc815\uc218 a, b\uc758 \ucd5c\ub300\uacf5\uc57d\uc218(GCD)\ub97c \uad6c\ud558\ub294 \uc54c\uace0\ub9ac\uc998\uc785\ub2c8\ub2e4. \ud655\uc7a5 \uc720\ud074\ub9ac\ub4dc \ud638\uc81c\ubc95\uc740 \uc5ec\uae30\uc5d0\uc11c \ub098\uc544\uac00 a\uc640 b\uc758 GCD\ub97c \uad6c\ud558\ub294 \ub3d9\uc2dc\uc5d0, \uadf8 GCD\ub97c a\uc640 b\uc758 \uc120\ud615 \uc870\ud569\uc73c\ub85c \ud45c\ud604\ud560 \uc218 \uc788\ub294 \uc815\uc218 x, y\ub97c \ucc3e\ub294 \ubc29\ubc95\uc785\ub2c8\ub2e4.\n        <\/p>\n<p>\n            \uc218\ud559\uc801\uc73c\ub85c, \uc774\ub97c \ud45c\ud604\ud558\uba74 \ub2e4\uc74c\uacfc \uac19\uc2b5\ub2c8\ub2e4:\n        <\/p>\n<p>\n<code>gcd(a, b) = ax + by<\/code>\n<\/p>\n<p>\n            \uc5ec\uae30\uc11c x\uc640 y\ub294 \uc815\uc218\uc774\uace0, gcd(a, b)\ub294 a\uc640 b\uc758 \ucd5c\ub300\uacf5\uc57d\uc218\ub97c \ub098\ud0c0\ub0c5\ub2c8\ub2e4.\n        <\/p>\n<h3>\ud655\uc7a5 \uc720\ud074\ub9ac\ub4dc \ud638\uc81c\ubc95\uc758 \ud544\uc694\uc131<\/h3>\n<p>\n            \ud655\uc7a5 \uc720\ud074\ub9ac\ub4dc \ud638\uc81c\ubc95\uc740 \uc8fc\ub85c \ub2e4\uc74c\uacfc \uac19\uc740 \ubb38\uc81c\ub97c \ud574\uacb0\ud558\ub294 \ub370 \ud544\uc694\ud569\ub2c8\ub2e4:\n        <\/p>\n<ul>\n<li>\ubaa8\ub4c8\ub7ec \uacf1\uc148 \uc5ed\uc6d0 \uacc4\uc0b0<\/li>\n<li>\uc120\ud615 \ub514\uc624\ud310 \ubc29\uc815\uc2dd \ud574\uacb0<\/li>\n<li>\uc554\ud638 \uc54c\uace0\ub9ac\uc998 \ubc0f \ud574\uc2dc \uc54c\uace0\ub9ac\uc998\uc5d0\uc11c\uc758 \uc751\uc6a9<\/li>\n<\/ul>\n<\/section>\n<section>\n<h2>\ubb38\uc81c \uc815\uc758<\/h2>\n<p>\n            \uc774\uc81c \ud655\uc7a5 \uc720\ud074\ub9ac\ub4dc \ud638\uc81c\ubc95\uc744 \ud65c\uc6a9\ud55c \uc54c\uace0\ub9ac\uc998 \ubb38\uc81c\ub97c \uc815\uc758\ud574 \ubcf4\uaca0\uc2b5\ub2c8\ub2e4. \ubb38\uc81c\ub294 \ub2e4\uc74c\uacfc \uac19\uc2b5\ub2c8\ub2e4:\n        <\/p>\n<blockquote><p>\n            \uc8fc\uc5b4\uc9c4 \ub450 \uc815\uc218 a\uc640 b\uc5d0 \ub300\ud574, \uadf8\ub4e4\uc758 \ucd5c\ub300\uacf5\uc57d\uc218\uc640 \ud568\uaed8 a\uc640 b\uc758 \uc120\ud615 \uc870\ud569\uc73c\ub85c \ud45c\ud604\ud558\ub294 \uc815\uc218 x\uc640 y\ub97c \uad6c\ud558\uc2dc\uc624.\n        <\/p><\/blockquote>\n<p>\n            \uc608\ub97c \ub4e4\uc5b4, a = 30, b = 21\uc77c \uacbd\uc6b0, \ucd5c\ub300\uacf5\uc57d\uc218\ub294 3\uc774\uba70, \uc774\ub97c 30\uacfc 21\uc758 \uc120\ud615 \uc870\ud569\uc73c\ub85c \ud45c\ud604\ud558\uba74 \ub2e4\uc74c\uacfc \uac19\uc740 \uacb0\uacfc\ub97c \uc5bb\uc744 \uc218 \uc788\uc2b5\ub2c8\ub2e4:\n        <\/p>\n<p>\n<code>3 = 1 * 30 + (-1) * 21<\/code>\n<\/p>\n<\/section>\n<section>\n<h2>\ubb38\uc81c \ud574\uacb0 \uacfc\uc815<\/h2>\n<h3>1. \uc54c\uace0\ub9ac\uc998 \uc124\uacc4<\/h3>\n<p>\n            \ud655\uc7a5 \uc720\ud074\ub9ac\ub4dc \ud638\uc81c\ubc95\uc758 \uae30\ubcf8 \uc544\uc774\ub514\uc5b4\ub294 \uc720\ud074\ub9ac\ub4dc \ud638\uc81c\ubc95\uc744 \ud655\uc7a5\ud558\uc5ec \ucd5c\ub300\uacf5\uc57d\uc218\uc640 \ud568\uaed8 \ud544\uc694\ud55c x, y\ub97c \uacc4\uc0b0\ud558\ub294 \uac83\uc785\ub2c8\ub2e4. \uc544\ub798\uc640 \uac19\uc740 \ubc29\uc2dd\uc73c\ub85c \uc54c\uace0\ub9ac\uc998\uc744 \uc124\uacc4\ud560 \uc218 \uc788\uc2b5\ub2c8\ub2e4:\n        <\/p>\n<ol>\n<li>\ucd5c\ub300\uacf5\uc57d\uc218\uc640 \ub354\ubd88\uc5b4 x\uc640 y\uac12\uc744 \uacc4\uc0b0\ud558\uae30 \uc704\ud574 \uc7ac\uadc0\uc801\uc73c\ub85c \ud568\uc218\ub97c \ud638\ucd9c\ud569\ub2c8\ub2e4.<\/li>\n<li>\ub450 \uc218 a\uc640 b\ub97c \uc0ac\uc6a9\ud558\uc5ec \ub2e4\uc74c\uacfc \uac19\uc740 \uad00\uacc4\ub97c \uc124\uc815\ud569\ub2c8\ub2e4:<br \/>\n<blockquote><p>\n<code>gcd(a, b) = gcd(b, a % b)<\/code>\n<\/p><\/blockquote>\n<\/li>\n<li>\uae30\uc800 \uc0ac\ub840\ub85c\ub294 b\uac00 0\uc77c \ub54c, gcd(a, 0) = a\uc774\uba70 x=1, y=0\uc73c\ub85c \uc124\uc815\ud569\ub2c8\ub2e4.<\/li>\n<li>\uc7ac\uadc0 \ud638\ucd9c \ud6c4\uc5d0\ub294 x\uc640 y\ub97c \uc5c5\ub370\uc774\ud2b8\ud558\uc5ec \uc120\ud615 \uc870\ud569\uc744 \uad6c\ud569\ub2c8\ub2e4.<\/li>\n<\/ol>\n<h3>2. C++ \uad6c\ud604<\/h3>\n<p>\n            \ub2e4\uc74c\uc740 \uc704\uc758 \uc54c\uace0\ub9ac\uc998\uc744 C++\ub85c \uad6c\ud604\ud55c \ucf54\ub4dc\uc785\ub2c8\ub2e4:\n        <\/p>\n<pre><code class=\"language-cpp\">\n#include &lt;iostream&gt;\n\nusing namespace std;\n\n\/\/ \ud655\uc7a5 \uc720\ud074\ub9ac\ub4dc \ud638\uc81c\ubc95\nint extended_gcd(int a, int b, int &amp;x, int &amp;y) {\n    \/\/ \uae30\uc800 \uc0ac\ub840\n    if (b == 0) {\n        x = 1;\n        y = 0;\n        return a;\n    }\n    \n    int x1, y1; \/\/ \uc7ac\uadc0 \ud638\ucd9c \ud6c4\uc758 \uac12\n    int gcd = extended_gcd(b, a % b, x1, y1);\n    \n    \/\/ x\uc640 y \uc5c5\ub370\uc774\ud2b8\n    x = y1;\n    y = x1 - (a \/ b) * y1;\n    \n    return gcd;\n}\n\nint main() {\n    int a, b;\n    int x, y;\n    \n    cout &lt;&lt; \"\ub450 \uc218\ub97c \uc785\ub825\ud558\uc138\uc694 (a b): \";\n    cin &gt;&gt; a &gt;&gt; b;\n    \n    int gcd = extended_gcd(a, b, x, y);\n    \n    cout &lt;&lt; \"\ucd5c\ub300\uacf5\uc57d\uc218: \" &lt;&lt; gcd &lt;&lt; endl;\n    cout &lt;&lt; \"x: \" &lt;&lt; x &lt;&lt;, \" y: \" &lt;&lt; y &lt;&lt; endl;\n    \n    return 0;\n}\n        <\/code><\/pre>\n<h3>3. \ucf54\ub4dc \uc124\uba85<\/h3>\n<p>\n            \uc704 \ucf54\ub4dc\ub294 \uc8fc\uc5b4\uc9c4 \ub450 \uc218 a\uc640 b\uc5d0 \ub300\ud574 \ud655\uc7a5 \uc720\ud074\ub9ac\ub4dc \ud638\uc81c\ubc95\uc744 \uad6c\ud604\ud558\uc5ec \ucd5c\ub300\uacf5\uc57d\uc218\uc640 x, y\ub97c \ubc18\ud658\ud569\ub2c8\ub2e4.\n        <\/p>\n<ul>\n<li><code>extended_gcd \ud568\uc218<\/code>: \ub450 \uc218\uc640 x, y\ub97c \uc778\uc790\ub85c \ubc1b\uc544 \ucd5c\ub300\uacf5\uc57d\uc218\uc640 x, y \uac12\uc744 \uacc4\uc0b0\ud569\ub2c8\ub2e4.<\/li>\n<li><code>main \ud568\uc218<\/code>: \uc0ac\uc6a9\uc790\ub85c\ubd80\ud130 \ub450 \uc218\ub97c \uc785\ub825\ubc1b\uc544 <code>extended_gcd<\/code> \ud568\uc218\ub97c \ud638\ucd9c\ud558\uace0 \uacb0\uacfc\ub97c \ucd9c\ub825\ud569\ub2c8\ub2e4.<\/li>\n<\/ul>\n<\/section>\n<section>\n<h2>\ud14c\uc2a4\ud2b8 \ucf00\uc774\uc2a4<\/h2>\n<p>\n            \uad6c\ud604\ud55c \uc54c\uace0\ub9ac\uc998\uc744 \ud14c\uc2a4\ud2b8\ud558\uae30 \uc704\ud574 \uc5ec\ub7ec \uac00\uc9c0 \ud14c\uc2a4\ud2b8 \ucf00\uc774\uc2a4\ub97c \uc0ac\uc6a9\ud574 \ubcf4\uaca0\uc2b5\ub2c8\ub2e4. \uc608\ub97c \ub4e4\uc5b4:\n        <\/p>\n<table>\n<thead>\n<tr>\n<th>a<\/th>\n<th>b<\/th>\n<th>\ucd5c\ub300\uacf5\uc57d\uc218 (GCD)<\/th>\n<th>x<\/th>\n<th>y<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td>30<\/td>\n<td>21<\/td>\n<td>3<\/td>\n<td>1<\/td>\n<td>-1<\/td>\n<\/tr>\n<tr>\n<td>48<\/td>\n<td>18<\/td>\n<td>6<\/td>\n<td>1<\/td>\n<td>-2<\/td>\n<\/tr>\n<tr>\n<td>56<\/td>\n<td>15<\/td>\n<td>1<\/td>\n<td>-2<\/td>\n<td>7<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/section>\n<section>\n<h2>\uacb0\ub860<\/h2>\n<p>\n            \uc774\ubc88 \uac15\uc88c\uc5d0\uc11c\ub294 \ud655\uc7a5 \uc720\ud074\ub9ac\ub4dc \ud638\uc81c\ubc95\uc758 \uc774\ub860\uacfc C++\uc744 \ud65c\uc6a9\ud55c \ubb38\uc81c \ud480\uc774 \uacfc\uc815\uc744 \uc0b4\ud3b4\ubcf4\uc558\uc2b5\ub2c8\ub2e4. \ud655\uc7a5 \uc720\ud074\ub9ac\ub4dc \ud638\uc81c\ubc95\uc740 \ucd5c\ub300\uacf5\uc57d\uc218\ub97c \uad6c\ud558\ub294 \ub370 \uadf8\uce58\uc9c0 \uc54a\uace0, \ub2e4\uc591\ud55c \uc218\ud559\uc801 \ubb38\uc81c\ub97c \ud574\uacb0\ud558\ub294 \ub370 \ub110\ub9ac \uc0ac\uc6a9\ub420 \uc218 \uc788\uc2b5\ub2c8\ub2e4. \uc774\ub7ec\ud55c \uae30\ubcf8\uc801\uc778 \uc774\ub860\uc744 \ubc14\ud0d5\uc73c\ub85c \ub354 \ubcf5\uc7a1\ud55c \uc54c\uace0\ub9ac\uc998 \ubb38\uc81c\ub3c4 \ud574\uacb0\ud560 \uc218 \uc788\ub294 \ub2a5\ub825\uc744 \uae30\ub974\uc2dc\uae38 \ubc14\ub78d\ub2c8\ub2e4.\n        <\/p>\n<\/section>\n<\/article>\n","protected":false},"excerpt":{"rendered":"<p>\uc11c\ub860 \ud604\ub300 \uac1c\ubc1c \ud658\uacbd\uc5d0\uc11c\ub294 \uc218\ub9ce\uc740 \ubb38\uc81c\ub97c \ud574\uacb0\ud558\uae30 \uc704\ud574 \ub2e4\uc591\ud55c \uc54c\uace0\ub9ac\uc998\uc774 \ud544\uc694\ud569\ub2c8\ub2e4. \uadf8 \uc911\uc5d0\uc11c\ub3c4 \uc218\ud559\uc801 \uae30\ubc95\uc744 \ud65c\uc6a9\ud55c \uc54c\uace0\ub9ac\uc998, \ud2b9\ud788 \u201c\ud655\uc7a5 \uc720\ud074\ub9ac\ub4dc \ud638\uc81c\ubc95(Extended Euclidean Algorithm)\u201d\uc740 \ub9e4\uc6b0 \uc720\uc6a9\ud55c \ub3c4\uad6c\uc785\ub2c8\ub2e4. \uc774 \uac15\uc88c\uc5d0\uc11c\ub294 \ud655\uc7a5 \uc720\ud074\ub9ac\ub4dc \ud638\uc81c\ubc95\uc758 \uc774\ub860\uacfc \ucf54\ub529\ud14c\uc2a4\ud2b8\uc5d0\uc11c \uc790\uc8fc \ub4f1\uc7a5\ud558\ub294 \ubb38\uc81c\ub97c \ud1b5\ud574 \uae4a\uc774 \uc788\uac8c \ub2e4\ub8e8\uc5b4 \ubcf4\uaca0\uc2b5\ub2c8\ub2e4. \uc774 \ub0b4\uc6a9\uc744 \ud1b5\ud574 \ud655\uc7a5 \uc720\ud074\ub9ac\ub4dc \ud638\uc81c\ubc95\uc744 \uccb4\uacc4\uc801\uc73c\ub85c \uc774\ud574\ud558\uace0 C++\uc744 \ud65c\uc6a9\ud558\uc5ec \uc2e4\uc804 \ubb38\uc81c\ub97c \ud574\uacb0\ud558\ub294 \ub2a5\ub825\uc744 &hellip; <a href=\"https:\/\/atmokpo.com\/w\/27798\/\" class=\"more-link\">\ub354 \ubcf4\uae30<span class=\"screen-reader-text\"> &#8220;C++ \ucf54\ub529\ud14c\uc2a4\ud2b8 \uac15\uc88c, \ud655\uc7a5 \uc720\ud074\ub9ac\ub4dc \ud638\uc81c\ubc95&#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-27798","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, \ud655\uc7a5 \uc720\ud074\ub9ac\ub4dc \ud638\uc81c\ubc95 - \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\/27798\/\" \/>\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, \ud655\uc7a5 \uc720\ud074\ub9ac\ub4dc \ud638\uc81c\ubc95 - \ub77c\uc774\ube0c\uc2a4\ub9c8\ud2b8\" \/>\n<meta property=\"og:description\" content=\"\uc11c\ub860 \ud604\ub300 \uac1c\ubc1c \ud658\uacbd\uc5d0\uc11c\ub294 \uc218\ub9ce\uc740 \ubb38\uc81c\ub97c \ud574\uacb0\ud558\uae30 \uc704\ud574 \ub2e4\uc591\ud55c \uc54c\uace0\ub9ac\uc998\uc774 \ud544\uc694\ud569\ub2c8\ub2e4. \uadf8 \uc911\uc5d0\uc11c\ub3c4 \uc218\ud559\uc801 \uae30\ubc95\uc744 \ud65c\uc6a9\ud55c \uc54c\uace0\ub9ac\uc998, \ud2b9\ud788 \u201c\ud655\uc7a5 \uc720\ud074\ub9ac\ub4dc \ud638\uc81c\ubc95(Extended Euclidean Algorithm)\u201d\uc740 \ub9e4\uc6b0 \uc720\uc6a9\ud55c \ub3c4\uad6c\uc785\ub2c8\ub2e4. \uc774 \uac15\uc88c\uc5d0\uc11c\ub294 \ud655\uc7a5 \uc720\ud074\ub9ac\ub4dc \ud638\uc81c\ubc95\uc758 \uc774\ub860\uacfc \ucf54\ub529\ud14c\uc2a4\ud2b8\uc5d0\uc11c \uc790\uc8fc \ub4f1\uc7a5\ud558\ub294 \ubb38\uc81c\ub97c \ud1b5\ud574 \uae4a\uc774 \uc788\uac8c \ub2e4\ub8e8\uc5b4 \ubcf4\uaca0\uc2b5\ub2c8\ub2e4. \uc774 \ub0b4\uc6a9\uc744 \ud1b5\ud574 \ud655\uc7a5 \uc720\ud074\ub9ac\ub4dc \ud638\uc81c\ubc95\uc744 \uccb4\uacc4\uc801\uc73c\ub85c \uc774\ud574\ud558\uace0 C++\uc744 \ud65c\uc6a9\ud558\uc5ec \uc2e4\uc804 \ubb38\uc81c\ub97c \ud574\uacb0\ud558\ub294 \ub2a5\ub825\uc744 &hellip; \ub354 \ubcf4\uae30 &quot;C++ \ucf54\ub529\ud14c\uc2a4\ud2b8 \uac15\uc88c, \ud655\uc7a5 \uc720\ud074\ub9ac\ub4dc \ud638\uc81c\ubc95&quot;\" \/>\n<meta property=\"og:url\" content=\"https:\/\/atmokpo.com\/w\/27798\/\" \/>\n<meta property=\"og:site_name\" content=\"\ub77c\uc774\ube0c\uc2a4\ub9c8\ud2b8\" \/>\n<meta property=\"article:published_time\" content=\"2024-10-27T14:43:54+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2024-11-26T07:14: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\/27798\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/atmokpo.com\/w\/27798\/\"},\"author\":{\"name\":\"root\",\"@id\":\"https:\/\/atmokpo.com\/w\/#\/schema\/person\/91b6b3b138fbba0efb4ae64b1abd81d7\"},\"headline\":\"C++ \ucf54\ub529\ud14c\uc2a4\ud2b8 \uac15\uc88c, \ud655\uc7a5 \uc720\ud074\ub9ac\ub4dc \ud638\uc81c\ubc95\",\"datePublished\":\"2024-10-27T14:43:54+00:00\",\"dateModified\":\"2024-11-26T07:14:56+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/atmokpo.com\/w\/27798\/\"},\"wordCount\":64,\"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\/27798\/\",\"url\":\"https:\/\/atmokpo.com\/w\/27798\/\",\"name\":\"C++ \ucf54\ub529\ud14c\uc2a4\ud2b8 \uac15\uc88c, \ud655\uc7a5 \uc720\ud074\ub9ac\ub4dc \ud638\uc81c\ubc95 - \ub77c\uc774\ube0c\uc2a4\ub9c8\ud2b8\",\"isPartOf\":{\"@id\":\"https:\/\/atmokpo.com\/w\/#website\"},\"datePublished\":\"2024-10-27T14:43:54+00:00\",\"dateModified\":\"2024-11-26T07:14:56+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/atmokpo.com\/w\/27798\/#breadcrumb\"},\"inLanguage\":\"ko-KR\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/atmokpo.com\/w\/27798\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/atmokpo.com\/w\/27798\/#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, \ud655\uc7a5 \uc720\ud074\ub9ac\ub4dc \ud638\uc81c\ubc95\"}]},{\"@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, \ud655\uc7a5 \uc720\ud074\ub9ac\ub4dc \ud638\uc81c\ubc95 - \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\/27798\/","og_locale":"ko_KR","og_type":"article","og_title":"C++ \ucf54\ub529\ud14c\uc2a4\ud2b8 \uac15\uc88c, \ud655\uc7a5 \uc720\ud074\ub9ac\ub4dc \ud638\uc81c\ubc95 - \ub77c\uc774\ube0c\uc2a4\ub9c8\ud2b8","og_description":"\uc11c\ub860 \ud604\ub300 \uac1c\ubc1c \ud658\uacbd\uc5d0\uc11c\ub294 \uc218\ub9ce\uc740 \ubb38\uc81c\ub97c \ud574\uacb0\ud558\uae30 \uc704\ud574 \ub2e4\uc591\ud55c \uc54c\uace0\ub9ac\uc998\uc774 \ud544\uc694\ud569\ub2c8\ub2e4. \uadf8 \uc911\uc5d0\uc11c\ub3c4 \uc218\ud559\uc801 \uae30\ubc95\uc744 \ud65c\uc6a9\ud55c \uc54c\uace0\ub9ac\uc998, \ud2b9\ud788 \u201c\ud655\uc7a5 \uc720\ud074\ub9ac\ub4dc \ud638\uc81c\ubc95(Extended Euclidean Algorithm)\u201d\uc740 \ub9e4\uc6b0 \uc720\uc6a9\ud55c \ub3c4\uad6c\uc785\ub2c8\ub2e4. \uc774 \uac15\uc88c\uc5d0\uc11c\ub294 \ud655\uc7a5 \uc720\ud074\ub9ac\ub4dc \ud638\uc81c\ubc95\uc758 \uc774\ub860\uacfc \ucf54\ub529\ud14c\uc2a4\ud2b8\uc5d0\uc11c \uc790\uc8fc \ub4f1\uc7a5\ud558\ub294 \ubb38\uc81c\ub97c \ud1b5\ud574 \uae4a\uc774 \uc788\uac8c \ub2e4\ub8e8\uc5b4 \ubcf4\uaca0\uc2b5\ub2c8\ub2e4. \uc774 \ub0b4\uc6a9\uc744 \ud1b5\ud574 \ud655\uc7a5 \uc720\ud074\ub9ac\ub4dc \ud638\uc81c\ubc95\uc744 \uccb4\uacc4\uc801\uc73c\ub85c \uc774\ud574\ud558\uace0 C++\uc744 \ud65c\uc6a9\ud558\uc5ec \uc2e4\uc804 \ubb38\uc81c\ub97c \ud574\uacb0\ud558\ub294 \ub2a5\ub825\uc744 &hellip; \ub354 \ubcf4\uae30 \"C++ \ucf54\ub529\ud14c\uc2a4\ud2b8 \uac15\uc88c, \ud655\uc7a5 \uc720\ud074\ub9ac\ub4dc \ud638\uc81c\ubc95\"","og_url":"https:\/\/atmokpo.com\/w\/27798\/","og_site_name":"\ub77c\uc774\ube0c\uc2a4\ub9c8\ud2b8","article_published_time":"2024-10-27T14:43:54+00:00","article_modified_time":"2024-11-26T07:14: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\/27798\/#article","isPartOf":{"@id":"https:\/\/atmokpo.com\/w\/27798\/"},"author":{"name":"root","@id":"https:\/\/atmokpo.com\/w\/#\/schema\/person\/91b6b3b138fbba0efb4ae64b1abd81d7"},"headline":"C++ \ucf54\ub529\ud14c\uc2a4\ud2b8 \uac15\uc88c, \ud655\uc7a5 \uc720\ud074\ub9ac\ub4dc \ud638\uc81c\ubc95","datePublished":"2024-10-27T14:43:54+00:00","dateModified":"2024-11-26T07:14:56+00:00","mainEntityOfPage":{"@id":"https:\/\/atmokpo.com\/w\/27798\/"},"wordCount":64,"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\/27798\/","url":"https:\/\/atmokpo.com\/w\/27798\/","name":"C++ \ucf54\ub529\ud14c\uc2a4\ud2b8 \uac15\uc88c, \ud655\uc7a5 \uc720\ud074\ub9ac\ub4dc \ud638\uc81c\ubc95 - \ub77c\uc774\ube0c\uc2a4\ub9c8\ud2b8","isPartOf":{"@id":"https:\/\/atmokpo.com\/w\/#website"},"datePublished":"2024-10-27T14:43:54+00:00","dateModified":"2024-11-26T07:14:56+00:00","breadcrumb":{"@id":"https:\/\/atmokpo.com\/w\/27798\/#breadcrumb"},"inLanguage":"ko-KR","potentialAction":[{"@type":"ReadAction","target":["https:\/\/atmokpo.com\/w\/27798\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/atmokpo.com\/w\/27798\/#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, \ud655\uc7a5 \uc720\ud074\ub9ac\ub4dc \ud638\uc81c\ubc95"}]},{"@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\/27798","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=27798"}],"version-history":[{"count":1,"href":"https:\/\/atmokpo.com\/w\/wp-json\/wp\/v2\/posts\/27798\/revisions"}],"predecessor-version":[{"id":27799,"href":"https:\/\/atmokpo.com\/w\/wp-json\/wp\/v2\/posts\/27798\/revisions\/27799"}],"wp:attachment":[{"href":"https:\/\/atmokpo.com\/w\/wp-json\/wp\/v2\/media?parent=27798"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/atmokpo.com\/w\/wp-json\/wp\/v2\/categories?post=27798"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/atmokpo.com\/w\/wp-json\/wp\/v2\/tags?post=27798"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}