#include#include#include#define INT_MAX 100void main(){ int n,zhengsum=0,fansum=0; srand(time(NULL)); scanf("%d",&n); while(n--) { if(rand()%INT_MAX*1.0/INT_MAX>0.5) zhengsum++; else fansum++; } printf("正面数:%d 反面数: %d\n",zhengsum,fansum);}