Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
π λ¬Έμ λ§ν¬
μν | νλ‘κ·Έλλ¨Έμ€ - μμ μ§κΏ(Lv.2)
βοΈ μμλ μκ°
30λΆ
β¨ μλ μ½λ
μ°μ , μμμ λ μ¬λμ΄ μμ λ 거리 λΉμ¨μ 1:1, 2:3, 1:2(= 2:4), 3:4 μ€ νλμ λλ€
κ·Έλμ μ²μμλ μ¬λλ€μ λͺΈλ¬΄κ² μ€λ¦μ°¨μμΌλ‘ μ λ ¬νκ³ ,
μ μ λͺΈλ¬΄κ²μΈ μ¬λλΆν° κΈ°μ€μΌλ‘ μ‘μμ λ·μμμ μ¬λκ³Ό μ λΉμ¨ μ€ νλλ‘ μμμ κ· νμ λ§μΆ μ μλμ§ μμ νμμΌλ‘ ꡬννμ΅λλ€
νμ§λ§ κ°μ 무κ²μΈ μ¬λλ μ€λ³΅ν΄μ κ³μ°ν΄ μΌλΆ μΌμ΄μ€μμ μκ°μ΄κ³Όκ° λ°μνμ΅λλ€.
μλλ μκ° μ΄κ³Όκ° λ°μν μ½λμ ꡬνλΆμ λλ€!
β μκ° μ΄κ³Ό μ½λ
μ€λ³΅λλ μ°μ°μ μ€μ΄κΈ° μν΄ λͺΈλ¬΄κ²οΏ½λ§λ€ ν΄λΉνλ μ¬λ μλ₯Ό μΈμ΄μ£Όκ³ , κ°λ₯ν μμ μ°μ°ν΄μ€¬μ΅λλ€
λ§μ½ κ°μ λͺΈλ¬΄κ²μΈ μ¬λμ΄ 2λͺ μ΄μμΌ κ²½μ°,
κ·Έ μ¬λλ€λΌλ¦¬λ λͺ¨λ 1:1 κ±°λ¦¬λ‘ μμ μ μκΈ° λλ¬Έμ μμ μ‘°ν©ν μ μλ μμΈ
n * (n-1) / 2
μ λμ ν΄μ€¬μ΅λλ€λλ¨Έμ§ 2:3, 1:2, 3:4 λΉμ¨μ κ±°λ¦¬λ‘ μλ κ²½μ°λ κ°μ λͺΈλ¬΄κ²λΌλ¦¬μ λ¬λ¦¬ μ€λ³΅λλ μ¬λμ΄ μμΌλ―λ‘
νμ¬ κΈ°μ€μ΄ λλ λͺΈλ¬΄κ²μ μ¬λ μμ ν΄λΉ λΉμ¨λ‘ μμ μ μλ λͺΈλ¬΄κ²μ μ¬λ μλ₯Ό κ³±ν΄μ£Όλ©΄ μμ μλ₯Ό ꡬν μ μμ΅λλ€.
κ° λΉμ¨λ§λ€ ifλ¬ΈμΌλ‘ 체ν¬ν΄μ£Όκ³ , ν΄λΉν κ²½μ° κ²½μ°μ μλ₯Ό λμ ν΄μ€¬μ΅λλ€
λΉμ¨ 체ν¬λ₯Ό ν λ°©λ²μ 2:3μ λΉμ¨μ κΈ°μ€μΌλ‘ μ€λͺ νλ©΄,
νμ¬ νμ μ€μΈ 무κ²κ° μΌμͺ½, 2μ ν΄λΉνλ€κ³ μκ°ν©λλ€!
μ΄λ κ² μ°Ύμ λͺΈλ¬΄κ²λ₯Ό μμμ μ€λͺ ν λ°©μμΌλ‘ κ³μ°ν΄μ£Όλ©΄ μ΅μ’ μ μΌλ‘ μμ μ§κΏμ μ μλ₯Ό μ°Ύμ μ μμ΅λλ€!
β μ΅μ’ μ½λ
π μλ‘κ² μκ²λ λ΄μ©