Skip to content

[오늘의 알고리즘] 시소 짝꿍#64

Merged
ing-eoking merged 1 commit intoBugShelter:mainfrom
yongjun-0903:04-01-1
May 26, 2025
Merged

[오늘의 알고리즘] 시소 짝꿍#64
ing-eoking merged 1 commit intoBugShelter:mainfrom
yongjun-0903:04-01-1

Conversation

@yongjun-0903
Copy link
Collaborator

📌 관련 문제

📋 풀이 요약

  • 짝꿍의 개념을 조합으로 생각함
  • 거리 계산을 최대공약수로 생각함
  • gcd(270, 360) -> 90 * 3 * 4 = 90 * 4 * 3 -> answer += 1

😞 실패한 테스트 케이스

image

@yongjun-0903 yongjun-0903 requested a review from ing-eoking April 1, 2025 01:01
@yongjun-0903 yongjun-0903 self-assigned this Apr 1, 2025
@yongjun-0903 yongjun-0903 added Algorithm 알고리즘 문제 풀이 🐜 Study 알고리즘 문제 공부 labels Apr 1, 2025
@ing-eoking ing-eoking linked an issue Apr 1, 2025 that may be closed by this pull request
@ing-eoking ing-eoking requested review from Copilot and removed request for ing-eoking April 9, 2025 01:27
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

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

Copilot reviewed 1 out of 1 changed files in this pull request and generated 1 comment.

Copy link

Copilot AI Apr 9, 2025

Choose a reason for hiding this comment

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

The condition may be misinterpreted due to operator precedence. Consider adding parentheses to explicitly check that both comb[0] // x and comb[1] // x are in siso.

Suggested change
if comb[0] // x and comb[1] // x in siso:
if (comb[0] // x in siso) and (comb[1] // x in siso):

Copilot uses AI. Check for mistakes.
@ing-eoking ing-eoking self-requested a review April 9, 2025 01:29
@ing-eoking ing-eoking merged commit e750210 into BugShelter:main May 26, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Algorithm 알고리즘 문제 풀이 🐜 Study 알고리즘 문제 공부

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[오늘의 알고리즘] 시소 짝꿍

3 participants