#include<stdio.h>
int main( void )
{
int a[12], b[12];
int i, aBig = 0, bBig = 0, equal = 0;
for(i = 0; i < 12; i++)
scanf("%d",&a[i]);
for(i = 0; i < 12; i++)
scanf("%d",&b[i]);
for(i = 0; i < 12; i++)
{
if(a[i] > b[i])
aBig++;
else if(a[i] < b[i])
bBig++;
else
equal++;
}
printf("%d %d %d\n",aBig, bBig, equal);
if(aBig > bBig)
printf("a is bigger than b\n");
else if(aBig < bBig)
printf("b is bigger than a\n");
else
printf("a is equal to b\n");
}
[此贴子已经被作者于2007-8-28 11:06:03编辑过]