#include <stdio.h>int main () {int m=0,n=0;static int a[10][10]={0,0}; A[0][1]=1;for (m=1;m<10;m++) {for (n=1;n<2*m-(n-1); n++) {a[m][n]=a[m-1][n-1]+a[m-1][n]; printf ("%4d", A[m][n]);} printf ("\ n");} return 0;}
#include <stdio.h>
void Main ()
{
int a,b,c,d,i;
for (i=0;i<4;i++)
{
Switch (i)
{
Case 0:a=0,b=1,c=1,d=1;
Break
Case 1:a=1,b=0,c=1,d=1;
Break
Case 2:a=1,b=1,c=0,d=1;
Break
Case 3:a=1,b=1,c=1,d=0;
Break
Default:break;
}
if (a+b+c==2&&b+c==1&&c+d==1)
printf ("%c is killer.\n", i+ ' A ');
}
return 0;
}
#include <stdio.h>
int main ()
{
int a,b,c,d,e;
int sum=0;
for (a=1;a<=5;a++)
{
for (b=1;b<=5;b++)
{
for (c=1;c<=5;c++)
{
for (d=1;d<=5;d++)
{
for (e=1;e<=5;e++)
{
if ((b==1) ^ (a==3) && ((b==2) ^ (e==4)) && ((c==1) ^ (d==2)) && ((c==5) ^ (d==3)) && ((e==4) ^ (a==1)) ==1)
{
printf ("a=%d b=%d c=%d d=%d e=%d\n", a,b,c,d,e);
sum++;
return 0;
}
}
}
}
}
}
printf ("sum=%d\n", sum);
return 0;
}
This article is from the "Numow" blog, make sure to keep this source http://10541695.blog.51cto.com/10531695/1676464
Yang Hui Triangle, who was the murderer, ranked the race