#include<iostream>
using namespace std;
int main(){
    int x=3,y=2;
    for (int a=0; a<=100/x;a++){
        for(int b=0;b<=100/y;b++){
            int c=100-a-b;
            if (a==0||b==0||c==0){
                continue;
            }
            if (c%3==0&&(x*a+y*b+c/3==100)){
                cout<<a<<" "<<b<<c<<endl;

            }
        }
    }
}

0 条评论

目前还没有评论...