百钱买百鸡-python
# ----------------------百钱百鸡
for jiwen in range(1,20):
for muji in range(1,33):
jichu=100-jiwen-muji
if 5 * jiwen + 3 * muji + 1 / 3 * jichu == 100:
# print(jiwen,muji,jichu)
print("鸡翁可为:%d,母鸡可为:%d,鸡雏可为:%d。"%(jiwen,muji,jichu))