Skip to content
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

1-yuyu0830 #1

Merged
merged 1 commit into from
Mar 15, 2024
Merged

1-yuyu0830 #1

merged 1 commit into from
Mar 15, 2024

Conversation

yuyu0830
Copy link
Collaborator

πŸ”— 문제 링크

https://www.acmicpc.net/problem/1865
1865 μ›œν™€

βœ”οΈ μ†Œμš”λœ μ‹œκ°„

3일...

✨ μˆ˜λ„ μ½”λ“œ

풀이 : https://blog.naver.com/abdds1166/223380026932
μ•Œκ³ λ¦¬μ¦˜ : https://blog.naver.com/abdds1166/223380023141
벨만-ν¬λ“œ μ•Œκ³ λ¦¬μ¦˜μ„ μ‚¬μš©ν–ˆμŠ΅λ‹ˆλ‹€ :)

πŸ“š μƒˆλ‘­κ²Œ μ•Œκ²Œλœ λ‚΄μš©

:D

Copy link
Collaborator

@InSange InSange left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

재밌게 잘 μ½μ—ˆμŠ΅λ‹ˆλ‹€..!
처음 문제 μ΄ν•΄ν•˜λŠ” μ‹œκ°„μ„ μ œμ™Έν•˜λ©΄ κ°€μ€‘μΉ˜λ₯Ό 따지지 μ•ŠλŠ” λ‹¨μˆœν•œ 벨만 ν¬λ“œ λ¬Έμ œμ˜€λ˜ 것 κ°™μŠ΅λ‹ˆλ‹€!.
μ €λŠ” λ„λ‘œμ™€ μ›œν™€μ„ λ”°λ‘œ λΆ„λ₯˜ν•˜μ—¬ μƒκ°ν–ˆμ—ˆλŠ”λ° μ•„μ˜ˆ ν†΅ν•©μ‹œμΌœμ„œ ν•œλ²ˆμ— μ²˜λ¦¬ν•˜λŠ” κΉ”λ”ν•œ ꡬ쑰 μ’‹μ•˜μŠ΅λ‹ˆλ‹€.
벨만 ν¬λ“œ μ’‹μ•„ν•˜μ‹œλ©΄ μ΅œλ‹¨κ²½λ‘œ ν•΄λ‹Ή λ¬Έμ œλ„ ν’€μ–΄λ³΄μ‹œλŠ”κ±° μΆ”μ²œλ“œλ¦½λ‹ˆλ‹€!

Copy link
Collaborator

@seongwon030 seongwon030 left a 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/11657 (νƒ€μž„λ¨Έμ‹ )

@9kyo-hwang
Copy link

1.

#define fastio ios_base::sync_with_stdio(false); cin.tie(nullptr); cout.tie(nullptr);
...
int main() {
    fastio;
    int testCase; cin >> testCase;
    while (testCase--) {
        if (f()) printf("YES\n");
        else printf("NO\n");
    }
}

stdioλž‘ syncλ₯Ό λŠμ€ μƒνƒœλΌλ©΄, μ–΄μ§€κ°„ν•˜λ©΄ C μž…μΆœλ ₯은 μ•ˆ μ“°λŠ” κ±Έ ꢌμž₯ν•©λ‹ˆλ‹€.

2.

bool f() {
    ...
}

ν•¨μˆ˜κ°€ μ–΄λ–€ κΈ°λŠ₯을 μˆ˜ν–‰ν•˜λŠ” 지 μ•Œ 수 μžˆλ„λ‘ μΉœμ ˆν•œ 이름을 μ§€μ–΄μ£ΌλŠ” 게 μ’‹λ‹€κ³  μƒκ°ν•©λ‹ˆλ‹€

Copy link
Contributor

@dhlee777 dhlee777 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

μ½”λ“œκ°€ μƒλ‹Ήνžˆ κ°„κ²°ν•˜κ³  κΉ”λ”ν•œ 것 κ°™μŠ΅λ‹ˆλ‹€ ν˜Ήμ‹œ κ·Έλž˜ν”„μ˜ νƒμƒ‰μ—μ„œ μŒμ˜κ°€μ€‘μΉ˜κ°€ μžˆμ§€λ§Œ 음의 사이클이 μ—†λŠ” κ²½μš°μ—λŠ” λ‹€μ΅μŠ€νŠΈλΌ μ•Œκ³ λ¦¬μ¦˜μœΌλ‘œ κ΅¬ν˜„μ΄ κ°€λŠ₯ν•œκ°€μš”?

@yuyu0830
Copy link
Collaborator Author

음의 사이클이 μ—†λ‹€λŠ” 보μž₯이 μžˆλ‹€λ©΄ λ°œμ‚°ν•˜μ§€ μ•ŠλŠ” μ΅œλ‹¨ 거리가 μ‘΄μž¬ν•œλ‹€λŠ” κ±°λ‹ˆκΉŒ μ œκ°€ μƒκ°ν•˜κΈ°μ—” λ¬Έμ œκ°€ 없을 것 κ°™κΈ΄ ν•œλ° μ–΄λ–¨λŸ°μ§€ λͺ¨λ₯΄κ² λ„€μš”?? μ‹œκ°„ λ‚˜λ©΄ 해보고 μ•Œλ €λ“œλ¦΄κ²Œμš”

@tgyuuAn tgyuuAn removed the request for review from 2secondag March 13, 2024 00:51
@yuyu0830 yuyu0830 closed this Mar 15, 2024
@yuyu0830 yuyu0830 reopened this Mar 15, 2024
@yuyu0830 yuyu0830 merged commit 5b6a343 into main Mar 15, 2024
2 checks passed
@yuyu0830 yuyu0830 deleted the 1-yuyu0830 branch March 15, 2024 04:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants