Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions _MonthlyChallenges/update_scoreboard.py
Original file line number Diff line number Diff line change
Expand Up @@ -62,16 +62,18 @@ def main():
continue

print(f"username: {username}, algorithm: {algorithm}, problem_id: {problem_id}")

print(f"users: {users}")
# 챌린지 유형에 포함되어 있는지 확인 (예: "그래프", "DP")
if algorithm not in CHALLENGE_TYPES:
continue # 챌린지 대상이 아니면 무시

# 사용자의 기록이 없으면 초기화
print("사용자의 기록이 없으면 초기화")
if username not in users:
scoreboard[username] = initialize_user()
users[username] = initialize_user()

# 해당 유형 문제 번호를 중복 없이 추가
print("해당 유형 문제 번호를 중복 없이 추가")
if problem_id not in users[username].get(algorithm, []):
users[username][algorithm].append(problem_id)

Expand Down
Empty file added minjeong/test.txt
Empty file.
Loading