算法应用-百钱买百鸡

百钱买百鸡 public static void main(String[] args) { int cock,hen,chicken=0; for(cock=0;cock<=19;cock++){ for(hen=0;hen<=33;hen++){ chicken=100-cock-hen; int p; p=chicken%3; if(((5*cock+3*hen+chicken/3)==10
相关文章
相关标签/搜索