jackfrued / jackfrued/Python-100-Days

day05 百钱百鸡代码示例错误

Open
#794 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Jupyter Notebook
Stars
187k
Forks
55.8k
PR merge metrics
No merged PRs in 30d

Description

for x in range(0, 21):
for y in range(0, 34):
z = 100 - 5 * x - 3 * y
if x * 5 + 3 * y + z == 100 and z >= 0:
print('公鸡: %d只, 母鸡: %d只, 小鸡: %d只' % (x, y, z))

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the day05 百钱百鸡 example containing the reported snippet and review the problem’s stated constraints alongside the current output logic. Confirm what makes a solution valid, then update the example and run it to ensure it reports only valid solutions.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
documentation
Issue type
Bug
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
52/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.