/*
*copyright(c) 2014,烟台大学计算机学院
*All rights reserved
*文件名称:test.cpp
*作者:吴雨凡
*版本:v6.0
*
*问题描述:委派任务
*输入描述:
*程序输出:判断相关问题
*/
#include<iostream>
using namespace std;
int main()
{
int a,b,c,d,e,f;
for(a=1;a>=0;a--)
for(b=1;b>=0;b--)
for(c=1;c>=0;c--)
for(d=1;d>=0;d--)
for(e=1;e>=0;e--)
for(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;
}