codeforces 217A Ice Skating
题意:加点,使图变成强连通图。做法:直接求出强连通分量个数,ans=连通数-1;#include #include#include#includeusing namespace std;bool gra[105][105];int vis[105],sign[105],time[105],t,ans;int n;vector >node;void dfs(int u){