- #include <iostream>
- using namespace std;
- int main ()
- {
- int x,y,z,count=0;
- for(x=1;x<20;++x)
- for(y=1;y<33;++y)
- for(z=1;z<100;++z)
- if(x+y+z==100&&5*x+3*y+z/3==100)
- {
- cout<<"x可能的值为"<<x<<",";
- cout<<"y可能的值为"<<y<<",";
- cout<<"z可能的值为"<<z<<endl;
- }
- return 0;
- }
百钱买百鸡
最新推荐文章于 2024-01-14 14:22:52 发布