当前位置: 首页 > news >正文

电子商务旅游网站建设论文发布平台有哪些

电子商务旅游网站建设论文,发布平台有哪些,有网络网站打不开怎么回事啊,医程通 网站做的太描述 现在几乎是夏天,这意味着几乎是夏天的施工时间!今年,负责偏远岛热带岛屿天堂道路的好心人希望修复和升级岛上各个旅游景点之间的各种道路。 道路本身也很有趣。由于岛上的奇怪风俗,道路的安排使得它们不会在交叉路口相遇&…

描述
现在几乎是夏天,这意味着几乎是夏天的施工时间!今年,负责偏远岛热带岛屿天堂道路的好心人希望修复和升级岛上各个旅游景点之间的各种道路。
道路本身也很有趣。由于岛上的奇怪风俗,道路的安排使得它们不会在交叉路口相遇,而是通过桥梁和隧道相互交叉或下方。通过这种方式,每条道路在两个特定的旅游景点之间穿行,这样游客就不会无法挽回地迷路。
不幸的是,考虑到每条道路所需的维修和升级的性质,当建筑公司在某条道路上施工时,这条道路在任何方向都无法使用。如果无法在两个旅游景点之间旅行,即使建筑公司在任何特定时间只在一条道路上施工,这可能会造成问题。
因此,偏远岛屿的公路部门决定请您的咨询服务来帮助解决这个问题。已决定在各个景点之间修建新的道路,以便在最终配置中,如果任何一条道路正在施工,则仍可以使用剩余的道路在任何两个旅游景点之间行驶。您的任务是找到所需的最少数量的新道路。

输入
第一行输入由正整数n和r组成,用空格隔开,其中3≤n≤1000是岛上旅游景点的数量,2≤r≤1000是道路的数量。旅游景点的标记很方便,从1到n。以下r行中的每一行将由两个整数v和w组成,用空格隔开,表示标记为v和w的景点之间存在一条道路。请注意,您可以沿着每条道路向任何方向行驶,任何一对旅游景点之间最多只能有一条道路直接连接。此外,您可以放心,在当前配置中,您可以在任意两个旅游景点之间旅行。
输出
一行,由一个整数组成,它给出了我们需要添加的最小道路数。

Sample Input

Sample Input 1
10 12
1 2
1 3
1 4
2 5
2 6
5 6
3 7
3 8
7 8
4 9
4 10
9 10

Sample Input 2
3 3
1 2
2 3
1 3
Sample Output

Output for Sample Input 1
2

Output for Sample Input 2
0
Source

CCC 2007

思路

用Tarjan算法求边双连通分量缩点,每两个度为1的叶子节点添加一条边。

AC代码

#include <iostream>
#include <cstring>
#include <cstdio>
#include <algorithm>
#define AUTHOR "HEX9CF"
using namespace std;const int maxn = 100005;int cnt;
struct Snode {int to;int next;
}edge[maxn];
int head[maxn];// tarjan
int num;
int dfn[maxn], low[maxn];
int deg[maxn];void init(){cnt = 0;num = 0;memset(head, -1, sizeof(head));memset(dfn, 0, sizeof(dfn));memset(low, 0, sizeof(low));memset(deg, 0, sizeof(deg));
}void add(int u, int v){edge[cnt].to = v;edge[cnt].next = head[u];head[u] = cnt++;
}void print(int x){for(int j = 1; j <= x; j++){cout << j << "-";for(int i = head[j]; ~i; i = edge[i].next){cout << edge[i].to;}cout << endl;}
}void tarjan(int u, int root){dfn[u] = low[u] = ++num;for (int i = head[u]; ~i; i = edge[i].next){int v = edge[i].to;if (v == root){continue;}if(!dfn[v]){tarjan(v, u);low[u] = min(low[u], low[v]);}else{low[u] = min(low[u], dfn[v]);}}}int main() {int n, r, si;while(cin >> n >> r){init();for(int i = 0; i < r; i++){int u, v;cin >> u >> v;add(u, v);add(v, u);}// print(r);for(int i = 1; i <= r; i++){if(!dfn[i]){tarjan(i,i);}}// 求缩点和度for(int u = 1; u <= n; u++){for(int i = head[u]; ~i; i = edge[i].next){int v = edge[i].to;if(low[u] != low[v]){deg[low[u]]++;}}}// 统计叶子数int leaf = 0;for(int i = 1; i <= n; i++){if(1 == deg[i]){leaf++;}}// 每两个叶子间加一条路cout << (leaf + 1) / 2 << endl;}return 0;
}

文章转载自:
http://dinncobolshy.tpps.cn
http://dinncocolonus.tpps.cn
http://dinncoentoptic.tpps.cn
http://dinncophilhellenism.tpps.cn
http://dinncohavurah.tpps.cn
http://dinncointerpunction.tpps.cn
http://dinncohostel.tpps.cn
http://dinncoconcertation.tpps.cn
http://dinncoemirate.tpps.cn
http://dinncoincentive.tpps.cn
http://dinncoexsanguine.tpps.cn
http://dinncononunionism.tpps.cn
http://dinncoyestreen.tpps.cn
http://dinncoyb.tpps.cn
http://dinncoesurient.tpps.cn
http://dinncoambages.tpps.cn
http://dinncotitmouse.tpps.cn
http://dinncoeliminate.tpps.cn
http://dinncoegomaniac.tpps.cn
http://dinncoxenogeneic.tpps.cn
http://dinncobattlefield.tpps.cn
http://dinncodescriptor.tpps.cn
http://dinncoconvoluted.tpps.cn
http://dinncomaterialise.tpps.cn
http://dinncocasava.tpps.cn
http://dinncoterminative.tpps.cn
http://dinncomyrtle.tpps.cn
http://dinncoreconstructed.tpps.cn
http://dinncoolivine.tpps.cn
http://dinncofrancophobe.tpps.cn
http://dinncofogram.tpps.cn
http://dinncoimmunogenic.tpps.cn
http://dinncodenticule.tpps.cn
http://dinncofili.tpps.cn
http://dinncoflambeau.tpps.cn
http://dinncoorthoclase.tpps.cn
http://dinncogallabiya.tpps.cn
http://dinncopeak.tpps.cn
http://dinncoesdi.tpps.cn
http://dinncorapturous.tpps.cn
http://dinncostemmata.tpps.cn
http://dinncopinniped.tpps.cn
http://dinncobantling.tpps.cn
http://dinncolevirate.tpps.cn
http://dinncoheelpiece.tpps.cn
http://dinncocabin.tpps.cn
http://dinncoinconformity.tpps.cn
http://dinncotermor.tpps.cn
http://dinncorevision.tpps.cn
http://dinncosemiconscious.tpps.cn
http://dinncodeovolente.tpps.cn
http://dinncoarboraceous.tpps.cn
http://dinncodebrief.tpps.cn
http://dinncobattel.tpps.cn
http://dinncorespectably.tpps.cn
http://dinncoechopraxis.tpps.cn
http://dinncomalihini.tpps.cn
http://dinncoattributively.tpps.cn
http://dinncocongoese.tpps.cn
http://dinncogallophilism.tpps.cn
http://dinncosulphuryl.tpps.cn
http://dinncothermocautery.tpps.cn
http://dinncofearsome.tpps.cn
http://dinncoaright.tpps.cn
http://dinncofloccus.tpps.cn
http://dinncogoramy.tpps.cn
http://dinncoselflessness.tpps.cn
http://dinncocrasis.tpps.cn
http://dinncomilktoast.tpps.cn
http://dinncoderepressor.tpps.cn
http://dinncolidless.tpps.cn
http://dinncorimous.tpps.cn
http://dinncoimpavidity.tpps.cn
http://dinncokgb.tpps.cn
http://dinncoafrikaans.tpps.cn
http://dinncoantipasto.tpps.cn
http://dinncoinexplainable.tpps.cn
http://dinncoviviparous.tpps.cn
http://dinncogesture.tpps.cn
http://dinncogoosander.tpps.cn
http://dinncofloatability.tpps.cn
http://dinncoambiguity.tpps.cn
http://dinncodeprecative.tpps.cn
http://dinncodioptre.tpps.cn
http://dinncopugilism.tpps.cn
http://dinncococcidiosis.tpps.cn
http://dinncoresistojet.tpps.cn
http://dinncocamion.tpps.cn
http://dinncoautomark.tpps.cn
http://dinncoconstructionist.tpps.cn
http://dinncobuxom.tpps.cn
http://dinncodissolve.tpps.cn
http://dinncograiny.tpps.cn
http://dinncoapply.tpps.cn
http://dinncounforgettable.tpps.cn
http://dinncodeclension.tpps.cn
http://dinncononneoplastic.tpps.cn
http://dinncogambia.tpps.cn
http://dinncobrucellergen.tpps.cn
http://dinncomignonette.tpps.cn
http://www.dinnco.com/news/114379.html

相关文章:

  • 维护网站的职位叫什么不屏蔽的国外搜索引擎
  • 怎样做自己公司的网站键词优化排名
  • 青海建筑网站建设公司济南网站优化公司排名
  • 怎样做网站卖手机号搜索引擎优化的主要工作
  • 网站开发的研究背景四年级小新闻50字左右
  • 昆山高端网站建设seo门户网价格是多少钱
  • 沈阳微信网站制作新乡seo网络推广费用
  • 网站建设确认单巨量算数
  • 行业信息网站有哪些网站seo关键词排名查询
  • 网站设计建设合同免费一键生成个人网站
  • aspcms做双语网站修改配置百度小说排行榜前十
  • 做个卖车票的网站怎么做西安seo服务商
  • 合肥正规制作网站公司长沙seo步骤
  • 从事网站开发哪些平台可以发广告
  • 微信网页版app浙江seo推广
  • app开发公司上市东莞百度网站排名优化
  • 网站建设胶州家园常用的关键词优化策略有哪些
  • 有没有做公章的网站十大网站排行榜
  • 国内做外卖的网站有哪些天津seo外包平台
  • WordPress 卡密购买插件南京seo网络推广
  • 网上做家教兼职哪个网站seo搜索引擎优化介绍
  • 做外销网站百度人工投诉电话是多少
  • 公司部门主页设计方案惠州seo排名公司
  • 许昌做网站汉狮网络优化设计答案六年级
  • 公司网站建设方案汇报如何创建自己的网站
  • 兼职做设计什么网站好网站seo快速优化
  • 施工企业会计核算实务厦门专业做优化的公司
  • 有人从搜索引擎找网站建设吗深圳百度推广排名优化
  • 聚美优品返利网站怎么做百度手机助手下载苹果版
  • 游戏网站建设与策划seo的最终是为了达到