#include <stdio.h> #include <stdlib.h> #include <string.h> #include <time.h> // 定义玩家信息结构体 typedef struct { char nickname[50]; char password[50]; char address[100]; int game_duration; char contact[20]; } PlayerInfo; // 定义玩家战绩结构体 typedef struct { char player_nickname[50]; char hero_chosen[50]; int kills; int deaths; int assists; int hero_score; int player_score; int double_kills; int triple_kills; int towers_destroyed; int monsters_killed; } GameStats; // 模拟的玩家数组 PlayerInfo players[100]; GameStats stats[100]; int player_co