Title: [Week 5] FORTRESS self review - Yunhyunjo · Issue #176 · Queue-ri/Advanced-Algorithm-Study · GitHub
Open Graph Title: [Week 5] FORTRESS self review - Yunhyunjo · Issue #176 · Queue-ri/Advanced-Algorithm-Study
X Title: [Week 5] FORTRESS self review - Yunhyunjo · Issue #176 · Queue-ri/Advanced-Algorithm-Study
Description: FORTRESS self review 1. 해결 시도 과정 스터디 자료를 보고 성벽 위치와 반지름을 담은 구조체를 만들었습니다. 그 다음 포함관계를 쉽게 구하기 위해 반지름을 기준으로 내림차순 정렬을 하였습니다. 2. 작성한 코드와 설명 struct Rampart { int x, y, r; Rampart(int x, int y, int r) { this->x = x; this->y = y; this->r = r; } bo...
Open Graph Description: FORTRESS self review 1. 해결 시도 과정 스터디 자료를 보고 성벽 위치와 반지름을 담은 구조체를 만들었습니다. 그 다음 포함관계를 쉽게 구하기 위해 반지름을 기준으로 내림차순 정렬을 하였습니다. 2. 작성한 코드와 설명 struct Rampart { int x, y, r; Rampart(int x, int y, int r) { thi...
X Description: FORTRESS self review 1. 해결 시도 과정 스터디 자료를 보고 성벽 위치와 반지름을 담은 구조체를 만들었습니다. 그 다음 포함관계를 쉽게 구하기 위해 반지름을 기준으로 내림차순 정렬을 하였습니다. 2. 작성한 코드와 설명 struct Rampart { int x, y, r; Rampart(int x, int y, int r) { thi...
Opengraph URL: https://github.com/Queue-ri/Advanced-Algorithm-Study/issues/176
X: @github
Domain: patch-diff.githubusercontent.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"[Week 5] FORTRESS self review - Yunhyunjo","articleBody":"# FORTRESS self review \r\n\r\n## 1. 해결 시도 과정\r\n스터디 자료를 보고 성벽 위치와 반지름을 담은 구조체를 만들었습니다.\r\n그 다음 포함관계를 쉽게 구하기 위해 반지름을 기준으로 내림차순 정렬을 하였습니다.\r\n\r\n## 2. 작성한 코드와 설명\r\n```cpp\r\nstruct Rampart {\r\n\tint x, y, r;\r\n\tRampart(int x, int y, int r) {\r\n\t\tthis-\u003ex = x;\r\n\t\tthis-\u003ey = y;\r\n\t\tthis-\u003er = r;\r\n\t}\r\n\r\n\tbool operator\u003e (const Rampart \u0026a)const {\r\n\t\treturn r \u003e a.r;\r\n\t}\r\n};\r\n```\r\n성벽의 위치와 반지름 정보를 담은 구조체입니다. 정렬은 반지름을 기준으로 내림차순 정렬을 해 주었습니다.\r\n```cpp\r\nint main()\r\n{\r\n\tios_base::sync_with_stdio(0);\r\n\tcin.tie(0); cout.tie(0);\r\n\r\n\tint c;\r\n\tcin \u003e\u003e c;\r\n\twhile (c--) {\r\n\t\tint n, a, b, c;\r\n\t\tcin \u003e\u003e n;\r\n\t\tvector \u003cRampart\u003e v;\r\n\t\tfor (int i = 0; i \u003c n; i++) {\r\n\t\t\tcin \u003e\u003e a \u003e\u003e b \u003e\u003e c;\r\n\t\t\tv.push_back(Rampart(a,b,c));\r\n\t\t}\r\n\t\tsort(v.begin(), v.end());\r\n\t}\r\n}\r\n```\r\nvector의 자료형을 Rampart로 해서 생성해주고 정렬을 해 주었습니다.\r\n\r\n## 3. 막힌 점 및 개선 사항\r\n정렬은 했는데 그 정보로 트리를 구현하는 과정에서 막혔습니다. 이 부분을 좀 더 고민해 봐야할 것 같습니다.","author":{"url":"https://github.com/Yunhyunjo","@type":"Person","name":"Yunhyunjo"},"datePublished":"2022-02-24T10:01:02.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":1},"url":"https://github.com/176/Advanced-Algorithm-Study/issues/176"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:d4c4f818-9e03-9968-3efa-9f235e5807dd |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 9188:AA2C5:170C154:1DEDA4F:698FD825 |
| html-safe-nonce | da27db356e99b364836d5b6e50f7e3854e27ccef1fadad84f494ae53e6152731 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5MTg4OkFBMkM1OjE3MEMxNTQ6MURFREE0Rjo2OThGRDgyNSIsInZpc2l0b3JfaWQiOiIyNjQ4MzE5NTI0MTY0NTg5NjA1IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | 010daf26ba3388cf93334a8da66f7329aeb32d0989cfcf76edd24fde85d88703 |
| hovercard-subject-tag | issue:1149085792 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/Queue-ri/Advanced-Algorithm-Study/176/issue_layout |
| twitter:image | https://opengraph.githubassets.com/93bc2c87e13b6c85e26e28cc9f420aa7bb4fe0eca95acf8d613dfe42ddfc5369/Queue-ri/Advanced-Algorithm-Study/issues/176 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/93bc2c87e13b6c85e26e28cc9f420aa7bb4fe0eca95acf8d613dfe42ddfc5369/Queue-ri/Advanced-Algorithm-Study/issues/176 |
| og:image:alt | FORTRESS self review 1. 해결 시도 과정 스터디 자료를 보고 성벽 위치와 반지름을 담은 구조체를 만들었습니다. 그 다음 포함관계를 쉽게 구하기 위해 반지름을 기준으로 내림차순 정렬을 하였습니다. 2. 작성한 코드와 설명 struct Rampart { int x, y, r; Rampart(int x, int y, int r) { thi... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | Yunhyunjo |
| hostname | github.com |
| expected-hostname | github.com |
| None | 42c603b9d642c4a9065a51770f75e5e27132fef0e858607f5c9cb7e422831a7b |
| turbo-cache-control | no-preview |
| go-import | github.com/Queue-ri/Advanced-Algorithm-Study git https://github.com/Queue-ri/Advanced-Algorithm-Study.git |
| octolytics-dimension-user_id | 77003554 |
| octolytics-dimension-user_login | Queue-ri |
| octolytics-dimension-repository_id | 327196656 |
| octolytics-dimension-repository_nwo | Queue-ri/Advanced-Algorithm-Study |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 327196656 |
| octolytics-dimension-repository_network_root_nwo | Queue-ri/Advanced-Algorithm-Study |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | d320682233dfd4d28c0b30554a564c2fcd229032 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width