-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. Weβll occasionally send you account related emails.
Already on GitHub? Sign in to your account
20-miniron-v #74
20-miniron-v #74
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
2λ¬λμ κ³ μνμ ¨μ΅λλ€! μ λ§ λ§μ§λ§μ μ΄μΈλ¦¬λ λ¬Έμ μ λͺ©μ΄λ€μ.
μ¬μ€ λ€λ₯Έ λΆλ€μ λΉν΄ λ―Όμ² λμ μ½λλ λ³Ό λ λ§λ€ μ½λμ λν νΌλ백보λ€λ λ°°μ°λ©΄μ μ«μκ°κΈ° λ°λΉ΄λ ν°λΌ, μμ¬μμ΄ μ‘°κΈ μλ€μ. μΈμ κ° λ€μ μ€ν°λλ₯Ό μ§ννκ² λλ©΄ κ·Έλλ μ§μ ν νΌλλ°±μ ν μ μκ² λλ€λ©΄ μ’κ² λ€μ..!! κ·Έλλ λλΆμ μ λ§ λ§μ κ²μ λ°°μ λ κ² κ°μμ. κ°μ¬ν©λλ€!
int a, b, c; | ||
std::cin >> a >> b >> c; | ||
|
||
std::cout << ((graph[a][b] <= c) ? "Enjoy other party\n" : "Stay here\n"); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
3μ€μ‘°κ±΄λ¬Έμ μΈμ λ΄λ κ°κ²°ν κ² κ°μμ! κ·Έλ¬λ μ κ° μΈ λ λ ν·κ°λ €μ λͺ» μ°λ ꡬ문 μ€ νλ..π
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
μΌν μ°μ°μλ.. κ°λ
μ±μ μΈ μΈ‘λ©΄μμλ μΆμ²νμ§ μμ΅λλ€!
μ§κΈμ μκ³ λ¦¬μ¦ νΈλ κ±°λΌ μκ΄ μμ§λ§ λ¨μκ² μ½λ 곡μ νκ±°λ ν λλ μ§μνλ κ²μ΄ μ’μ΅λλ€ :)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
λ
Έλκ° κ°μ±μλ€μ.....
νμ λ―Όμ² λ μ½λλ₯Ό 보면μ λ°°μκ°λκ² λ§μλλ
μμ½λ€μ~ λΆμ‘±ν μ μ½λμλ μ΄μ μ μΌλ‘ μ½λ©νΈ λ¬μμ£Όμ
μ κ°μ¬ν©λλ€~!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
2λ¬κ° κ³ μνμ §μλλ€ :)
νμ 리뷰 κΈΈκ² λ¬μμ£Όμ μ κ°μ¬ν©λλ€ νν μ λ λ Έλ ₯μ νλλ° μ λ μ λͺ¨λ₯΄κ±°λ λ¨μκ² λ¬΄μ¨ λ§μ ν΄μ€μΌ ν μ§ μ λͺ¨λ₯΄κ² λ κ²½μ°κ° λ§λλΌκ΅¬μ,,,γ γ
νλ‘μ΄λ μμ ν΄λ³΄μ§ μμμ§λ§...ν΄λ΄μΌμ§ ν΄λ΄μΌμ§ νλ€κ° κ²°κ΅ μνκ³ λλλ€μ γ γ γ γ μ΄λ κ²λλ§ κ°μ 체ν ν΄λ³΄κ³ κ°λλ€ κ΅Ώ
int a, b, c; | ||
std::cin >> a >> b >> c; | ||
|
||
std::cout << ((graph[a][b] <= c) ? "Enjoy other party\n" : "Stay here\n"); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
μΌν μ°μ°μλ.. κ°λ
μ±μ μΈ μΈ‘λ©΄μμλ μΆμ²νμ§ μμ΅λλ€!
μ§κΈμ μκ³ λ¦¬μ¦ νΈλ κ±°λΌ μκ΄ μμ§λ§ λ¨μκ² μ½λ 곡μ νκ±°λ ν λλ μ§μνλ κ²μ΄ μ’μ΅λλ€ :)
π λ¬Έμ λ§ν¬
https://www.acmicpc.net/problem/11265
11265λ²: λλμ§ μλ νν°
λΆλ₯: κ·Έλν, νλ‘μ΄λ-μμ
βοΈ μμλ μκ°
40λΆ
β¨ μλ μ½λ
The Show Must Go On.
λ Έλ λ£κΈ°
μ΄λ² PRμ λ§μ§λ§μΌλ‘ μκ³ λ¦¬λλ―Έ 5νμ λμ λ§κ² μ§λ§, μ°λ¦¬μ μ½λ©μ κ³μλ κ±°λκΉ. μ΄λ¦μ΄ λ§μμ λ€μ΄μ 골λλ€.
μ΄μ PRμ μ¬λ Έλ λ€μ΅μ€νΈλΌ μκ³ λ¦¬μ¦μ ν μ μμ λ€λ₯Έ λͺ¨λ μ μ κ°λ μ΅λ¨ κ²½λ‘λ₯Ό ꡬνλ λ°©λ²μ΄λ€.
νμ§λ§ μ΄λ² λ¬Έμ λ λͺ¨λ μ μμ λͺ¨λ μ μΌλ‘ κ°λ μ΅λ¨ κ²½λ‘λ€μ΄ νμνλ€. μ΄λ λ€μ΅μ€νΈλΌλ₯Ό 500λ² λλ €μ ν΄κ²°ν μλ μμ§λ§, μ΄μ νΉνλ νλ‘μ΄λ-μμ μκ³ λ¦¬μ¦μ μ¬μ©νλ©΄ νΈλ¦¬ν΄μ§λ€.
https://velog.io/@kimdukbae/νλ‘μ΄λ-μμ -μκ³ λ¦¬μ¦-Floyd-Warshall-Algorithm
μ λΈλ‘κ·Έλ₯Ό μ°Έκ³ νλ€.
νλ‘μ΄λ-μμ μκ³ λ¦¬μ¦
νλ‘μ΄λ-μμ μκ³ λ¦¬μ¦μ DPλ₯Ό κΈ°λ°μΌλ‘ νλ€.
λμκ³Ό ꡬν λ°©μμ΄ λ§€μ° κ°λ¨νλ°, μ΄λ₯Ό ν λ©΄ μλ λ μ€λ‘ λμμ μμ½ν μ μλ€.
4μ€ κ°μ 2μ€μ΄λ©΄ μ€λͺ λλ κΉλν μκ³ λ¦¬μ¦. κ·Έλ§νΌ ꡬν μμ κ°λ¨νλ°
3μ€μ λ°λ³΅λ¬Έκ³Ό 1μ€μ DPλ‘ ννλλ€.
λ°λ‘ μ 체 μ½λλ₯Ό μ΄ν΄λ³΄μ.
π μ 체 μ½λ
π μλ‘κ² μκ²λ λ΄μ©
λ€μ΅μ€νΈλΌλ₯Ό λͺ λ² λ ν΄λ³΄λ €νλλ°, μ΄λμ λμ΄ λ€κ°μλ€. λ§μ§λ§μ μλ―Έμλ μ΄λ¦μΌλ‘ νκ³ μΆμ΄μ, λ§μΉ¨ μ ν΄λ³Έ μ νμ λ¬Έμ μ λμ ν΄λ΄€λ€.
μκ³ λ¦¬λλ―Έλ₯Ό ν΅ν΄ μκ°λ³΅μ‘λμ λ¬Έμ κ° μλ€λ©΄ λΈλ£¨νΈν¬μ€λΆν° ν΄λ³΄λ νλ, μλ μ’μνλ 그리λμ DPμ λν μ리ν¨, μ§κΈκ» κΊΌλ €μλ κ·Έλν λ¬Έμ λ€μ λν μμ κ°μ κ°κ² λλ€.
λ€λ₯Έ μ¬λμ μ½λμ 리뷰λ₯Ό λ¨κΈ°λ κ²λ, λ€λ₯Έ μ¬λλ€μ΄ λ΄ μ½λμ 리뷰λ₯Ό λ¨κ²¨μ£Όλ κ²λ μ’μ κ²½νμ΄μλ€. λΉλ‘ μκ° μμ μ¬μ κ° μμ΄ λλ μ΄λ² PRμ λμΌλ‘ μκ³ λ¦¬λλ―Έλ₯Ό λ λμ§λ§, μΈμ λ λ€μ λμμ¬ κ²μ΄λ€.
λ€λ€ μ§κΈκΉμ§ λΆμ‘±ν μ€λͺ λ€μ΄μ£ΌλλΌ κ³ μνκ³ , νμ μ’μ μ½λ©νΈλ₯Ό λ¨κ²¨μ£Όμ΄ κ°μ¬νμ΅λλ€. λ¨Έμ§ μμ λ μ λ€μ 보길 λ°λμ!