摘要: 将顶点进行排序,去掉度m最大的点,依次让其后m个数减1,若后面的某个顶点出现负数的情况或后面的数的个数少于最大的度#include#include#includeusing namespace std;struct EDGE{ int d;//储存度数 int num;//储存位置}ed... 阅读全文
posted @ 2012-07-14 12:52 calmound 阅读(716) 评论(0) 推荐(1) 编辑