#include<stdio.h><br />
#include<math.h><br />
#include "iostream"<br />
using namespace std;
int main()
{
int b1,b2,b3,b4,b5,b6;
for( b1=8;b1<2520;b1=b1+8)
{
for(b2=1;b2<2520-b1;b2++)
{
int lao2=(b1/8+b2);
if((2520/6==lao2*6/7)&&(0==lao2%7))
for(b3=1;b3<2520-b1-b2;b3++)
{
int lao3=lao2/7+b3;
if((2520/6==lao3*5/6)&&(0==lao3%6))
for (b4=1;b4<2520-b1-b2-b3;b4++)
{
int lao4=lao3/6+b4;
if ((2520/6==lao4*4/5)&&(0==lao4%5))
for(b5=1;b5<2520-b1-b2-b3-b4;b5++)
{
int lao5=lao4/5+b5;
if ((2520/6==lao5*3/4)&&(0==lao5%4))
{
b6=2520-b1-b2-b3-b4-b5;
int lao6=lao5/4+b6;
if((2520/6==lao6*2/3) &&(0==lao6%3))
if (2520/6==(b1*7/8+lao6/3))
{
cout<<"***分2520个橘子***"<<endl;
cout<<"老大:"<<b1<<endl;
cout<<"老二:"<<b2<<endl;
cout<<"老三:"<<b3<<endl;
cout<<"老四:"<<b4<<endl;
cout<<"老五:"<<b5<<endl;
cout<<"老六:"<<b6<<endl;
cout<<"******************"<<endl;
}
}
}
}
}
}
}
// system("pause");
}