主题链接:pid=2454">http://acm.hdu.edu.cn/showproblem.php?pid=2454 Problem Description Wang Haiyang is a strong and optimistic Chinese youngster. Although born and brought up in the northern inland city Harbin, he has deep love and yearns for the bound…
对于图的所有顶点,计算出每个顶点的度,度序列.给定一个序列判断序列是否可图. #include<cstdio> #include<algorithm> #include<cstring> using namespace std; int map[15][15]; struct vertext { int d; int num; }x[15]; bool cmp(vertext a,vertext b) { return b.d<a.d; } int main()…