张丘建百钱求百鸡 c++ #include<iostream> using namespace std;int main(){ int x,y,z; for(x=0;x<20;x++) for(y=0;y<33;y++) for(z=0;z<100;z+=3) if(x*5+y*3+z/3==100&&x+y+z==100) cout<<"鸡翁数:"<<x<<" 鸡母数:"<<y<<" 雏鸡数:"<<z<<endl; return 0;}