{"id":58579,"date":"2026-11-12T09:02:01","date_gmt":"2026-11-12T00:02:01","guid":{"rendered":"https:\/\/blog.agentsoft.co.kr\/index.php\/2026\/11\/12\/58579\/"},"modified":"2026-11-12T09:02:01","modified_gmt":"2026-11-12T00:02:01","slug":"%ea%b1%b4%ea%b5%ad%eb%8c%80%ed%95%99%ea%b5%90-%ec%bb%b4%ed%93%a8%ed%84%b0%ed%94%84%eb%a1%9c%ea%b7%b8%eb%9e%98%eb%b0%8d2-a2024-ver-%ea%b3%bc%ec%a0%9c10","status":"publish","type":"post","link":"https:\/\/blog.agentsoft.co.kr\/index.php\/2026\/11\/12\/58579\/","title":{"rendered":"[\uac74\uad6d\ub300\ud559\uad50 \ucef4\ud4e8\ud130\ud504\ub85c\uadf8\ub798\ubc0d2 A+][2024 Ver] \uacfc\uc81c10"},"content":{"rendered":"<p><img decoding=\"async\" src=\"https:\/\/image4.happycampus.com\/Production\/thumbnail\/2024\/08\/14\/data30242625-0001.jpg\"><img decoding=\"async\" src=\"https:\/\/image4.happycampus.com\/Production\/thumbnail\/2024\/08\/14\/data30242625-0002.jpg\"><\/p>\n<p><strong>\ubaa9\ucc28<\/strong><\/p>\n<p>1. \ucf54\ub4dc<br \/>\n2. \uacb0\uacfc<br \/>\n3. \uc124\uba85<\/p>\n<p><strong>\ubcf8\ubb38\ub0b4\uc6a9<\/strong><\/p>\n<p>\u2462 \uc124\uba85<br \/>\naverage\ud568\uc218\ub294 \ub9ac\ud134 \ud0c0\uc785\uc774 bool\uc774\ub2e4. if\ubb38\uc744 \uc774\uc6a9\ud558\uc5ec \ub9cc\uc57d size\uac12\uc774 0\ubcf4\ub2e4 \uc791\uc73c\uba74 0\uc744 \ub9ac\ud134\ud558\uace0, \uadf8\ub807\uc9c0 \uc54a\uc73c\uba74 \uc785\ub825\ubc1b\uc740 \ubc30\uc5f4\uc758 \ucc98\uc74c\ubd80\ud130 \ub05d\uae4c\uc9c0 \ub2e4 \ub354\ud55c \uac12\uc758 \ud3c9\uade0\uc744 \ub9ac\ud134\ud55c\ub2e4.<br \/>\nmain\ud568\uc218\uc5d0\uc11c x\ubc30\uc5f4 [0,1,2,3,4,5]\ub97c \ub193\uace0 \ud568\uc218\ub97c 2\ubc88 \uc2e4\ud589\ud558\uc600\ub2e4. \uccab \ubc88\uc9f8\uc5d0\uc11c\ub294 0\ubcf4\ub2e4 \ud070 size\ub97c \uc8fc\uc5b4\uc11c \ud3c9\uade0\uc744 \ub9ac\ud134\ud558\uc600\uace0, \ub450 \ubc88\uc9f8\uc5d0\uc11c\ub294 0\ubcf4\ub2e4 \uc791\uc740 size\ub97c \uc8fc\uc5b4\uc11c 0\uc744 \ub9ac\ud134\ud558\uc600\ub2e4. -> \u2018\ub9e4\uac1c \ubcc0\uc218 \uc624\ub958\u2019\ub77c\ub294 \ubb38\uc790\uc5f4 \ucd9c\ub825\ub428.<\/p>\n<p>\u2462 \uc124\uba85<br \/>\nincrease \ud568\uc218\ub294 \ub9e4\uac1c\ubcc0\uc218\ub85c Circle \ud074\ub798\uc2a4 \uac1d\uccb4\ub97c \ubc1b\uc544\uc11c \ub9e4\uac1c \uac1d\uccb4\uc758 \uba64\ubc84 \ubcc0\uc218 radius\uac12\uc744 int\ud615 \ubcc0\uc218 r\uc5d0 \uc800\uc7a5\ud55c\ub2e4. \uadf8 \ud6c4 setRadius\uba64\ubc84\ud568\uc218\ub97c \uc774\uc6a9\ud558\uc5ec \ub9e4\uac1c \uac1d\uccb4\uc758 radius\uac12\uc744 r + 1\uac12\uc73c\ub85c \ubcc0\uacbd\ud55c\ub2e4.<br \/>\nmain\ud568\uc218\uc5d0\uc11c radius = 30\uc73c\ub85c waffle \uac1d\uccb4\ub97c \uc0dd\uc131 -> radius\uac12\uc744 1 \uc99d\uac00 -> waffle\uac1d\uccb4\uc758 radius\uac12 \ucd9c\ub825 -> waffle \uac1d\uccb4 \uc18c\uba78 \uc21c\uc73c\ub85c \uc9c4\ud589 \ub418\uc5c8\ub2e4.<\/p>\n<p>\u2462 \uc124\uba85<br \/>\nreadRadius\ud568\uc218\ub294 \ub9e4\uac1c\ubcc0\uc218\ub85c Circle \ud074\ub798\uc2a4 \uac1d\uccb4\ub97c \ubc1b\ub294\ub2e4. \uc0ac\uc6a9\uc790\ub85c\ubd80\ud130 \uc785\ub825 \ubc1b\uc740 \uac12\uc744 int\ud615 \ubcc0\uc218 r\uc5d0 \uc800\uc7a5 \ud6c4 setRadius\ud568\uc218\ub97c \uc774\uc6a9\ud558\uc5ec r\uac12\uc73c\ub85c \ub9e4\uac1c \uac1d\uccb4\uc758 radius\uac12\uc744 \ubcc0\uacbd\ud55c\ub2e4.<br \/>\nmain\ud568\uc218\uc5d0\uc11c Circle \ud074\ub798\uc2a4 donut\uac1d\uccb4\ub97c \ub514\ud3f4\ud2b8 \uc0dd\uc131\uc790\ub85c \uc0dd\uc131 -> readRadius\ud568\uc218\ub85c dount\uac1d\uccb4\uc758 radius\uac12 \ubcc0\uacbd -> donut\uac1d\uccb4\uc758 getArea \ub9e4\uac1c\ud568\uc218 \uc2e4\ud589 \uc21c\uc73c\ub85c \uc9c4\ud589\ub418\uc5c8\ub2e4.<\/p>\n<p>\u2462 \uc124\uba85<br \/>\nfind\ud568\uc218\ub294 \ub9e4\uac1c\ub85c \uc785\ub825\ubc1b\uc740 \ubc30\uc5f4\uc758 index\ubc88\uc758 \ub124\ubaa8\ub97c \ub9ac\ud134\ud55c\ub2e4. (\ub808\ud37c\ub7f0\uc2a4 \ub9ac\ud134)<br \/>\nmain\ud568\uc218 \uc601\uc5ed\uc5d0\uc11c find \ud568\uc218\ub85c name \ubc30\uc5f4\uc758 0\ubc88 \ub124\ubaa8\ub97c \ub9ac\ud134\ubc1b\uc544 \u2018S\u2019\ub97c \ub300\uc785\ud55c\ub2e4. \uc774\uc5b4\uc11c find\ud568\uc218\ub85c name \ubc30\uc5f4\uc758 2\ubc88 \ub124\ubaa8\ub97c \ub9ac\ud134\ubc1b\uc544 \ub808\ud37c\ub7f0\uc2a4\ub85c ref\ub77c\ub294 \uc774\ub984\uc744 \ubd99\uc778\ub2e4. \uadf8 \ud6c4 ref\uc5d0 \u2018t\u2019\ub97c \ub300\uc785\ud55c\ub2e4.<\/p>\n<p>\ucd9c\ucc98 : <a href=\"https:\/\/www.happycampus.com\/report-doc\/30242625\/\" target=\"_blank\">\ud574\ud53c\ucea0\ud37c\uc2a4<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\ubaa9\ucc28 1. \ucf54\ub4dc 2. \uacb0\uacfc 3. \uc124\uba85 \ubcf8\ubb38\ub0b4\uc6a9 \u2462 \uc124\uba85 average\ud568\uc218\ub294 \ub9ac\ud134 \ud0c0\uc785\uc774 bool\uc774\ub2e4. if\ubb38\uc744 \uc774\uc6a9\ud558\uc5ec \ub9cc\uc57d size\uac12\uc774 0\ubcf4\ub2e4 \uc791\uc73c\uba74 0\uc744 \ub9ac\ud134\ud558\uace0, \uadf8\ub807\uc9c0 \uc54a\uc73c\uba74 \uc785\ub825\ubc1b\uc740 \ubc30\uc5f4\uc758 \ucc98\uc74c\ubd80\ud130 \ub05d\uae4c\uc9c0 \ub2e4 \ub354\ud55c \uac12\uc758 \ud3c9\uade0\uc744 \ub9ac\ud134\ud55c\ub2e4. main\ud568\uc218\uc5d0\uc11c x\ubc30\uc5f4 [0,1,2,3,4,5]\ub97c \ub193\uace0 \ud568\uc218\ub97c 2\ubc88 \uc2e4\ud589\ud558\uc600\ub2e4. \uccab \ubc88\uc9f8\uc5d0\uc11c\ub294 0\ubcf4\ub2e4 \ud070 size\ub97c \uc8fc\uc5b4\uc11c \ud3c9\uade0\uc744 \ub9ac\ud134\ud558\uc600\uace0, \ub450 \ubc88\uc9f8\uc5d0\uc11c\ub294 0\ubcf4\ub2e4 \uc791\uc740 size\ub97c \uc8fc\uc5b4\uc11c 0\uc744 [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[13813,66398,66399,66400],"class_list":["post-58579","post","type-post","status-publish","format-standard","hentry","category-uncategorized","tag-13813","tag-66398","tag-66399","tag-66400"],"_links":{"self":[{"href":"https:\/\/blog.agentsoft.co.kr\/index.php\/wp-json\/wp\/v2\/posts\/58579","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blog.agentsoft.co.kr\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.agentsoft.co.kr\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.agentsoft.co.kr\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.agentsoft.co.kr\/index.php\/wp-json\/wp\/v2\/comments?post=58579"}],"version-history":[{"count":0,"href":"https:\/\/blog.agentsoft.co.kr\/index.php\/wp-json\/wp\/v2\/posts\/58579\/revisions"}],"wp:attachment":[{"href":"https:\/\/blog.agentsoft.co.kr\/index.php\/wp-json\/wp\/v2\/media?parent=58579"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.agentsoft.co.kr\/index.php\/wp-json\/wp\/v2\/categories?post=58579"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.agentsoft.co.kr\/index.php\/wp-json\/wp\/v2\/tags?post=58579"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}