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

[토르] 8주차 과제 제출 #253

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

injoon2019
Copy link
Collaborator

안녕하세요 이번 주차 문제 뭔가 어렵네요. 한 문제는 풀었는데 나머지 문제들도 계속 도전해보겠습니다.

@injoon2019 injoon2019 self-assigned this Aug 20, 2022
Copy link
Member

@kth990303 kth990303 left a comment

Choose a reason for hiding this comment

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

토르 스터디하느라 고생많으셨어요!
16498번은 정렬만 하셨길래 혹시나 힌트 필요하실까 해서 힌트 남겨드립니다.

Comment on lines +9 to +14
A, B, C = map(int, input().split())
a_numbers = sorted(list(map(int, input().split())))
b_numbers = sorted(list(map(int, input().split())))
c_numbers = sorted(list(map(int, input().split())))

answer = sys.maxsize
Copy link
Member

Choose a reason for hiding this comment

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

정렬한 다음에, 진짜로 모든 부분에 대해 전부 브루트포스하는 게 정해입니다 ㅎㅎ...
단, O(N^3) 풀이는 안됩니다.
최대를 가지는 사람, 최소를 가지는 사람을 고정시켜서 총 3P2가지 경우로 시도해보세요!

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.

None yet

2 participants