Include
Void the count ();
Void group ();
Void money ();
Void judge ();
Int main ()
{
Int choice;
While (1)
{
Printf (" \ n \ n \ n ");
Printf (" * * * * * * * * * * * * * * * * * * * * * * the enumeration method, the application of * * * * * * * * * * * * * * * * * * * * \ n ");
printf("\n");
Printf (" 1. The number of walnut \ n ");
Printf (" (2) the type of card type \ n ");
Printf (" 3. One yuan coin exchange \ n ");
Printf (" 4. The police do judgment \ n ");
Printf (" 0. Quit \ n ");
printf("\n");
Printf (" * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * \ n ");
Printf (" do choice (0 to 5) : ");
The scanf (" % d ", & amp; Choice);
The switch (choice)
{
Case: 0 exit (0);
Case 1: the count (); break;
Case 2: group (); break;
Case 3: money (); break;
Case 4: judge (); break;
}
}
}
Void the count ()
{
Int a, b, c; The scanf (" % d % d % d ", & amp; A, & amp; B, & amp; C);
While (a!=0 & amp; & b!=0 & amp; & c!=0)///a=b=0 0 c=0 exit
{
int i=1;
While (I & gt; 0)
{
If (a==0 I % & amp; & I % b==0 & amp; & I % c==0)
{
Printf (" % d \ n ", I); break;
}
i++;
}
The scanf (" % d % d % d ", & amp; A, & amp; B, & amp; C);
}
return 0;
}
Void monry ()
{
Int a=1, b=2, c=5, d=10, 20, e=f=50; Long long s=0;
Int I, j, k, x, y, z;
for(i=0; i<=100; I++)
{
for(j=0; J<=50; J++)
{
for(k=0; K<=20; K++)
{
For (x=0; X<=10; X++)
{
For (y=0; Y<=5; Y++)
{
For (z=0; Z<=2; Z++)
{
If (a * I * j + + b + d * x + e * c * k y + f * z==100)
S++;
}
}
}
}
}
}
Printf (" % LLD ", s);
return 0;
}
Void group ()
{
Int a, [13].
Int s=0;
For (a [0]=0; A [0] <=4; A [0] + +)
For (a [1]=0; A [1] <=4; A + + [1])
For (a [2]=0; A [2] <=4; A + + [2])
For (a [3]=0; A [3] <=4; A [3] + +)
For (a [4]=0; A [4] <=4; A [4] + +)
For (a [5]=0; A [5] <=4; A [5] + +)
For (a [6]=0; A [6] <=4; A + + [6])
For (a [7]=0; A [7] <=4; A [7] + +)
For (a [8]=0; A [8] <=4; A [8] + +)
For (a [9]=0; A [9] <=4; A [9] + +)
For (a [10]=0; A [10] <=4; A [10] + +)
For (a [11]=0; A [11] <=4; A [11] + +)
For (a [12]=0; A [12] <=4; A + + [12])
{
If (a [0] a [2] + [1] a + + a + [3] a [4] + [5] a + a + a [7] [6]
+ a + a [8] [9] + [10] a + a + a, [11] [12]==13)
S++;
}
Printf (" % d ", s);
return 0;
}
Void judge ()
{
Char killer;
For (killer='A'; Killer & lt;='D'; Killer++)
{
If (((killer!='A') + (killer=='C') + (killer=='D') + (killer!='D'))==3)
{
Printf (" killer=% c \ n ", apparently);
}
}
system("pause");
return 0;
}