#include<bits/stdc++.h> using namespace std; int main() { int i,x,y; for(i=0;i<=100/5;i++) for(x=0;x<=100/3;x++) for(y=0;y<=100*3;y++) if(5*i+3*x+y/3==100&&i+x+y==100&&y%3==0) cout<<i<<' '<<x<<' '<<y<<endl; return 0; }
2028 【例4.14】百钱买百鸡
最新推荐文章于 2024-10-27 16:37:20 发布