#include<stdio.h>
#include<stdlib.h>
#include<time.h>
int main()
{srand((unsigned)time(NULL));
	int d1,d2,c1,c2,i,j;
	
	c1=0;c2=0;
	for(i=1;i<=50;i++)
	{d1=0;d2=0;
		for(j=1;j<=5;j++)
		
		{
		d1=d1+rand()%6+1;d2=d2+rand()%6+1;
		}if(d1>d2)c1++;else if(d1<d2)c2++;
	
	}
	if(c1>c2)printf("第一个玩家赢了!");
	else 
		if(c1<c2)printf("第二个玩家赢了!");
		else printf("平局");return 0;

}




#include<stdio.h>
#include<stdlib.h>
#include<time.h>
int main()
{
	int d1,d2,c1,c2,i,j;
srand((unsigned)time(NULL));
	
	c1=0;c2=0;
	for(i=1;i<=50;i++)
	{d1=0;d2=0;
		for(j=1;j<=5;j++)
		
		{
		d1=d1+rand()%6+1;d2=d2+rand()%6+1;
		}if(d1>d2)c1++;else if(d1<d2)c2++;
	
	}
	if(c1>c2)printf("第一个玩家赢了!");
	else 
		if(c1<c2)printf("第二个玩家赢了!");
		else printf("平局");return 0;

}