1025 PAT Ranking (25分)

#include 
#include
#include
#include
using namespace std;

struct compet{
	char r_n[14];
	int score;
	int id;
	int golbal_rank;
	int local_rank;
	compet()
	{
		golbal_rank = -1;
		local_rank = -1;
	}
}CP[30100];

bool cmp(compet c1,compet c2);

int main()
{
	int N,id=1,sum=0;     								//N数据集个数,id数据集所属类,sum总共参赛选手个数
	scanf("%d",&N);
	for(int i=0;i

 

你可能感兴趣的:(PAT甲级)