图论
erge1998
华南师范大学计算机学院2016届学生
展开
-
2018百度之星B轮 degree
degree Accepts: 1581 Submissions: 3494 Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 131072/131072 K (Java/Others) Problem Description 度度熊最近似乎在研究图论。给定一个有 NN 个点 (vertex) 以及 MM 条边 (edge...原创 2018-08-12 18:14:10 · 137 阅读 · 0 评论 -
有向图的拓扑排序
#include<bits/stdc++.h> using namespace std; typedef long long ll; #define inf 0x3f3f3f3f int n; int e[100][100]; vector<int>vec; int cnt[100];//记录每个节点的入度 int que[200]; int front=0;int ta...原创 2018-11-28 10:16:06 · 671 阅读 · 0 评论 -
PAT 甲练习 1003 Emergency
1003 Emergency (25 分) As an emergency rescue team leader of a city, you are given a special map of your country. The map shows several scattered cities connected by some roads. Amount of rescue teams...原创 2018-11-28 15:22:34 · 92 阅读 · 0 评论