魈凯KBS • 5个月前
using namespace std;
int main() { for(int a=1; a>=0; a--) {
for(int b=1;b>=0;b--) {
for(int c=1;c>=0;c--)
{
for(int d=1;d>=0;d--)
{
for(int e=1;e>=0;e--)
{
for(int f=1;f>=0;f--)
{
if(a+b>=1&&a+d!=2&&a+e+f==2&&(b+c==0||b+c==2)&&c+d==1&&
(d+e==0||d==1))
{
cout<<"a:"<<a<<endl;
cout<<"b:"<<b<<endl;
cout<<"c:"<<c<<endl;
cout<<"d:"<<d<<endl;
cout<<"e:"<<e<<endl;
cout<<"f:"<<f<<endl;
}
}
}
}
}
} }
return 0; }
Comments: