}
}
#include
using namespace std;
int main()
{
/* code */
int n,a;
int b;
for (n=1; n< 6; n++)
{
for(a=1;a<4;a++)
{
if((n*4+a*6)==26&&(n*(n+a)*(n+2*a)*(n+3*a))==880)
{
b=1;
break;
}
}
if(b==1)
break;
}
int s;
s=20*n+(20*(20-1)/2)*a;
cout << s<
}
#include
using namespace std;
int main()
{
/* code */
int hong,bai,hei;
//int b;
for (hong=0; hong< 4; hong++)
{
for(bai=0;bai<4;bai++)
{
for (hei = 0; hei < 6; hei++)
{
/* code */
if(hong+bai+hei==8)
cout << "红球有"<
}
}
return 0;
}
//根据百度修改,goto不会
#include
using namespace std;
int main()
{
unsigned int a,b,c,d,e,f;
for(a=0;a<=1;a++)
for(b=0;b<=1;b++)
for(c=0;c<=1;c++)
for(d=0;d<=1;d++)
for(e=0;e<=1;e++)
for(f=0;f<=1;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))
goto End;
End:
if(a==1)
cout <<"a ";
if(b==1)
cout <<"b ";
if(c==1)
cout <<"c ";
if(d==1)
cout <<"d ";
if(e==1)
cout <<"e ";
if(f==1)
cout <<"f ";
cout <<"去参加任务"<
}
#include
using namespace std;
int main()
{
/* code */
int dou,yao,xue,c,s;
for (dou = 0; dou< 10; dou++)
for (yao = 0; yao < 10; yao++)
for (xue = 0; xue < 10; xue++)
for (c = 0;c < 10; c++)
if((dou-yao)*(dou-xue)*(dou-c)*(yao-xue)*(yao-c)*(xue-c)!=0)
{
s=dou*1000+yao*2*100+xue*3*10+c*4;
if(s==2008)
cout << "都= "<#include
using namespace std;
int main()
{
/* code */
int a,b,c,d,t;
a=1,b=0,c=0,d=0;
t=((a!=1)+(c==1)+(d==1)+(d!=1));
if(t==3)
cout << "A是小偷"<
t=((a!=1)+(c==1)+(d==1)+(d!=1));
if(t==3)
cout << "B是小偷"<
t=((a!=1)+(c==1)+(d==1)+(d!=1));
if(t==3)
cout << "C是小偷"<
t=((a!=1)+(c==1)+(d==1)+(d!=1));
if(t==3)
cout << "D是小偷"<
}
#include
#include
using namespace std;
int main()
{
int a,b,c,d,e,y,z,w;
for (a=1;a<10;a++)
for (b=1;b<10;b++)
for (c=1;c<10;c++)
for (d=0;d<10;d++)
for (e=0;e<10;e++)
{
w=a*(b*10+3+c);
y=w*w;
z=8000+100*d+10*e+9;
if(y==z)
cout << a<<'\t'< }
return 0;
}
3 2 8 6 4