百钱买百鸡Java

百钱买百鸡 公鸡5文钱一只,母鸡3文钱一只,小鸡3只一文钱, 用100文钱买一百只鸡,其中公鸡,母鸡,小鸡都必须要有,问公鸡,母鸡,小鸡要买多少只刚好凑足100文钱 public class Algorithm61101 { public static void main(String[] args) { int cock,hen,chicken=0; fo
相关文章
相关标签/搜索