2117专题

ACMclub 2117 确定比赛名次(拓扑排序)

题目连接 直接排序 #define _CRT_SECURE_NO_WARNINGS#include <iostream>#include <cstdio>#include <cstring>using namespace std;int N, M;const int MAXN = 501, MAXM = MAXN*MAXN/2;int g[MAXN][MAXN], i