jackfrued / jackfrued/Python-100-Days
day05 百钱百鸡代码示例错误
Open
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
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- 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