雕刻时光

just do it……nothing impossible
随笔 - 547, 文章 - 0, 评论 - 82, 阅读 - 86万
  博客园  :: 首页  :: 新随笔  :: 联系 :: 订阅 订阅  :: 管理
< 2025年3月 >
23 24 25 26 27 28 1
2 3 4 5 6 7 8
9 10 11 12 13 14 15
16 17 18 19 20 21 22
23 24 25 26 27 28 29
30 31 1 2 3 4 5

随笔分类 -  欧拉回路,欧拉路径

摘要:http://poj.org/problem?id=2230vectorView Code #include<iostream>#include<vector>using namespace std;vector<int>map[10009];void init(int n){ int i; for(i=1;i<=n;i++) map[i].clear();}void find(int now){ int i; for(i=1;i<=map[now].size();i++) { while(map[now][i-1]!=0){ ... 阅读全文

posted @ 2012-04-06 21:56 huhuuu 阅读(329) 评论(0) 推荐(0) 编辑

摘要:http://acm.csu.edu.cn/OnlineJudge/problem.php?id=1184优先小节点搜欧拉道路,如果有奇数入度节点要从这个节点出发。注意从小到大在算法遍历里是1->n!!!!path输出来时是n->0!!!! 要是以为算法遍历里是n->1,path输出来时是0->n那就错了数据42 31 23 11 2会输出:2 1 2 3 1 错!!!!View Code #include<stdio.h>#include<string.h>#include<iostream>#include<algorith 阅读全文

posted @ 2012-03-18 21:23 huhuuu 阅读(431) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示