/*
*/
#include "stdio.h"
void main(){
int b,s,g;
int x,y,z;
x=y=z=0;
for(b=0;b<=9;b++)
{
for(s=0;s<=9;s++)
{
for(g=0;g<=9;g++)
{
printf("%4d%d%d",b,s,g);
if(b==s&&s==g)
x++;
else if(b==s&&s!=g||b==g&&g!=s||s==g&&g!=b)
y++;
else
z++;
}
printf("
");
}
}
printf("豹子有 %d 个
",x);
printf("对子有 %d 个
",y);
printf("组六有 %d 个
",z);
}