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

ABOUT 1차 알고리즘 공모전 #1

Open
SeungJL opened this issue Jul 10, 2024 · 0 comments
Open

ABOUT 1차 알고리즘 공모전 #1

SeungJL opened this issue Jul 10, 2024 · 0 comments

Comments

@SeungJL
Copy link

SeungJL commented Jul 10, 2024

상세 내용
https://docs.google.com/forms/d/1ZHVVsNlckqs1i2BaipTu--g7zA6Mu-40OQxPjwexuG8/edit

예제 코드

date_range = ["2024-07-10", "2024-07-14"]
min_team_size = 3
max_team_size = 5

members = [
    {"name": "Alice", "region": "L1", "age": 25, "gender": "woman", "together": "Bob", "not_together": ["Charlie"], "dates": ["2024-07-10", "2024-07-11"], "leader": "Y"},
    {"name": "Bob", "region": "L1", "age": 24, "gender": "man", "together": "", "not_together": ["Alice"], "dates": ["2024-07-10"], "leader": "N"},
    {"name": "Charlie", "region": "L1", "age": 23, "gender": "man", "together": "", "not_together": ["Alice"], "dates": ["2024-07-10"], "leader": "A"},
    {"name": "David", "region": "L2", "age": 22, "gender": "man", "together": "", "not_together": [], "dates": ["2024-07-10"], "leader": "Y"},
    {"name": "Eve", "region": "L1", "age": 21, "gender": "woman", "together": "", "not_together": [], "dates": ["2024-07-10", "2024-07-11"], "leader": "N"},
    {"name": "Grace", "region": "L1", "age": 24, "gender": "woman", "together": "", "not_together": [], "dates": ["2024-07-10"], "leader": "N"},
    {"name": "Heidi", "region": "L2", "age": 23, "gender": "woman", "together": "", "not_together": [], "dates": ["2024-07-10"], "leader": "A"}
]

출력코드

{
    "2024-07-10": {
        "teams": {
            "A": {"members": ["Alice", "Bob", "Eve", "Grace"], "leader": "Alice"},
            "B": {"members": ["Charlie", "David", "Heidi"], "leader": "David"}
        },
        "unmatched": []
    },
    "2024-07-11": {
        "teams": {
            "A": {"members": ["Alice", "Eve"], "leader": "Alice"}
        },
        "unmatched": []
    },
    "2024-07-12": {
        "teams": {},
        "unmatched": []
    },
    "2024-07-13": {
        "teams": {},
        "unmatched": []
    },
    "2024-07-14": {
        "teams": {},
        "unmatched": []
    }
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant