Skip to content

🐜 Study: μ–‘κΆλŒ€νšŒ#97

Merged
ing-eoking merged 1 commit intoBugShelter:mainfrom
ing-eoking:05/29
Jun 11, 2025
Merged

🐜 Study: μ–‘κΆλŒ€νšŒ#97
ing-eoking merged 1 commit intoBugShelter:mainfrom
ing-eoking:05/29

Conversation

@ing-eoking
Copy link
Collaborator

πŸ“Œ κ΄€λ ¨ 문제

πŸ“‹ 풀이 μš”μ•½

DFS 문제

😞 μ‹€νŒ¨ν•œ ν…ŒμŠ€νŠΈ μΌ€μ΄μŠ€

@ing-eoking ing-eoking requested a review from Copilot May 29, 2025 02:42
@ing-eoking ing-eoking self-assigned this May 29, 2025
@ing-eoking ing-eoking added Algorithm μ•Œκ³ λ¦¬μ¦˜ 문제 풀이 🐜 Study μ•Œκ³ λ¦¬μ¦˜ 문제 곡뢀 labels May 29, 2025
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.

Pull Request Overview

This PR implements a DFS solution for the "μ–‘κΆλŒ€νšŒ" problem, aiming to determine an optimal shooting strategy in an archery competition scenario.

  • Implements DFS recursion to explore possible shot distributions.
  • Uses lexicographical comparison (via slicing) for tie-breaking decisions.
Comments suppressed due to low confidence (1)

μ–‘κΆλŒ€νšŒ.py:4

  • [nitpick] Consider renaming the parameter 'i' to a more descriptive name such as 'round' or 'arrow_index' to enhance code readability.
def dfs(i, left, shot):

Copy link

Copilot AI May 29, 2025

Choose a reason for hiding this comment

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

[nitpick] Consider using an explicit conversion (e.g., '(1 if s > a else 0)') rather than relying on boolean-to-integer conversion for clarity.

Suggested change
scores = [(10 - j) * (s > a) for j, (s, a) in enumerate(zip(shot, info))]
scores = [(10 - j) * (1 if s > a else 0) for j, (s, a) in enumerate(zip(shot, info))]

Copilot uses AI. Check for mistakes.
@ing-eoking ing-eoking requested a review from yongjun-0903 May 29, 2025 02:43
@ing-eoking ing-eoking merged commit be3fefe into BugShelter:main Jun 11, 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.

[였늘의 μ•Œκ³ λ¦¬μ¦˜] μ–‘κΆλŒ€νšŒ

2 participants