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

做外贸哪些国外网站可以推广seo sem是指什么意思

做外贸哪些国外网站可以推广,seo sem是指什么意思,四川省工程建设信息官方网站,WordPress hitokoto题目 为了达到新冠疫情精准防控的需要,为了避免全员核酸检测带来的浪费,需要精准圈定可能被感染的人群。现在根据传染病流调以及大数据分析,得到了每个人之间在时间、空间上是否存在轨迹的交叉。现在给定一组确诊人员编号 (X1, X2, X3, …, n…
题目

为了达到新冠疫情精准防控的需要,为了避免全员核酸检测带来的浪费,需要精准圈定可能被感染的人群。现在根据传染病流调以及大数据分析,得到了每个人之间在时间、空间上是否存在轨迹的交叉。现在给定一组确诊人员编号 (X1, X2, X3, …, n),在所有人当中,找出哪些人需要进行核酸检测,输出需要进行核酸检测的人数。(注意:确诊病例自身不需要再做核酸检测)
需要进行核酸检测的人,是病毒传播链条上的所有人员,即有可能通过确诊病例所能传播到的所有人。
例如:A是确诊病例,A和B有接触、B和C有接触、C和D有接触、D和E有接触,那么B\C\D\E都是需要进行核酸检测的人。
输入描述
第一行为总人数N
第二行为确诊病例人员编号(确诊病例人员数量<N),用逗号分割
第三行开始,为一个N*N的矩阵,表示每个人员之间是否有接触,0表示没有接触,1表示有接触。
输出描述
整数:需要做核酸检测的人数
补充说明
人员编号从0开始
0 < N < 100
1
示例
输入
5
1,2
1,1,0,1,0
1,1,0,0,0
0,0,1,0,1
1,0,0,1,0
0,0,1,0,1
1
2
3
4
5
6
7
输出
3
1
补充说明
编号为1、2号的人员,为确诊病例。1号和0号有接触,0号和3号有接触。
2号和4号有接触。所以,需要做核酸检测的人是0号、3号、4号,总计3人需要进行核酸检测

参考代码

方法:并查集

package RealTest;
import java.util.*;/*** @ClassName nucleicAcidNumber* @Description TODO* @Author 21916* @Date 2024/3/27 14:58*/class UF{int count;int[] parent;public UF(int n){this.count = n;parent = new int[n];for(int i =0;i<n;i++){parent[i]  =i;}}public void union(int p,int q){if(find(p)==find(q)) return;parent[p] = q;this.count--;}public int find(int x){if(x!=parent[x]){parent[x]  = find(parent[x]);}return parent[x];}}
public class nucleicAcidNumber {public static void main(String[] args) {Scanner scanner = new Scanner(System.in);int n = scanner.nextInt();scanner.nextLine(); // Consume newlineString startListStr = scanner.nextLine();String[] arr = startListStr.split(",");Set<String> set = new HashSet<>();for(String s:arr){set.add(s);}// System.out.println(startListStr);StringTokenizer tokenizer = new StringTokenizer(startListStr, ",");List<Integer> startList = new ArrayList<>();while (tokenizer.hasMoreTokens()) {startList.add(Integer.parseInt(tokenizer.nextToken()));}int[][] mat = new int[n][n];for (int i = 0; i < n; i++) {String row = scanner.nextLine();tokenizer = new StringTokenizer(row, ",");for (int j = 0; j < n; j++) {mat[i][j] = Integer.parseInt(tokenizer.nextToken());}}UF uf = new UF(n);for(int i=0;i<n;i++){for(int j=0;j<n;j++){if(mat[i][j]==1&&(set.contains(i+"")|| set.contains(j+""))){uf.union(i,j);set.add(i+"");set.add(j+"");// System.out.println("此时的count"+uf.count);}}}System.out.println(n- arr.length-uf.count+1);}}

也可以使用BFS,DFS方法进行搜索
csdn


文章转载自:
http://dinncokaliningrad.tpps.cn
http://dinncolassen.tpps.cn
http://dinncoichnography.tpps.cn
http://dinncohousehold.tpps.cn
http://dinncotriose.tpps.cn
http://dinncosuccessful.tpps.cn
http://dinncoabounding.tpps.cn
http://dinncorepique.tpps.cn
http://dinncoglassware.tpps.cn
http://dinncowhack.tpps.cn
http://dinncoblunt.tpps.cn
http://dinncocomparison.tpps.cn
http://dinncocamleteen.tpps.cn
http://dinncobuntal.tpps.cn
http://dinncooverfreight.tpps.cn
http://dinncoamerika.tpps.cn
http://dinncoscuppernong.tpps.cn
http://dinncopuissance.tpps.cn
http://dinncodinghy.tpps.cn
http://dinncotouchy.tpps.cn
http://dinncodiastyle.tpps.cn
http://dinncozwinglianism.tpps.cn
http://dinncointercurrent.tpps.cn
http://dinncomirrnyong.tpps.cn
http://dinncoherbalist.tpps.cn
http://dinncosulphamethazine.tpps.cn
http://dinncoabsinthism.tpps.cn
http://dinncoungalled.tpps.cn
http://dinncoormer.tpps.cn
http://dinncochasid.tpps.cn
http://dinncotobago.tpps.cn
http://dinncomantlerock.tpps.cn
http://dinncocrystallize.tpps.cn
http://dinncoairload.tpps.cn
http://dinncodesubstantiate.tpps.cn
http://dinncosulphatise.tpps.cn
http://dinncogiantess.tpps.cn
http://dinncosauna.tpps.cn
http://dinncopreviously.tpps.cn
http://dinncoorangutan.tpps.cn
http://dinncocontinentalization.tpps.cn
http://dinncotecnology.tpps.cn
http://dinncotelegony.tpps.cn
http://dinncorapturous.tpps.cn
http://dinncolightwood.tpps.cn
http://dinncosnowmobilist.tpps.cn
http://dinncolistee.tpps.cn
http://dinncoarchbishopric.tpps.cn
http://dinncoallowably.tpps.cn
http://dinncoequus.tpps.cn
http://dinncokhrushchev.tpps.cn
http://dinncosynoptical.tpps.cn
http://dinncoganges.tpps.cn
http://dinncoabiogenist.tpps.cn
http://dinncogranulocytosis.tpps.cn
http://dinncobelligerent.tpps.cn
http://dinncoshipping.tpps.cn
http://dinncokwangsi.tpps.cn
http://dinncodogface.tpps.cn
http://dinncoerf.tpps.cn
http://dinncohemipteran.tpps.cn
http://dinncoanthrosphere.tpps.cn
http://dinncokafiri.tpps.cn
http://dinncocontemplator.tpps.cn
http://dinncoweighshaft.tpps.cn
http://dinncolightheartedness.tpps.cn
http://dinncograyback.tpps.cn
http://dinncocartload.tpps.cn
http://dinncocephalochordate.tpps.cn
http://dinncoassonance.tpps.cn
http://dinncophosphine.tpps.cn
http://dinncodistinction.tpps.cn
http://dinncospurgall.tpps.cn
http://dinncoageless.tpps.cn
http://dinncorebekah.tpps.cn
http://dinncostratagem.tpps.cn
http://dinncolyophilize.tpps.cn
http://dinncouncovery.tpps.cn
http://dinncovisualization.tpps.cn
http://dinncoorwellism.tpps.cn
http://dinncovivacious.tpps.cn
http://dinncozora.tpps.cn
http://dinncotestifier.tpps.cn
http://dinncomonopolize.tpps.cn
http://dinncoharari.tpps.cn
http://dinncorememberable.tpps.cn
http://dinncoassignments.tpps.cn
http://dinncotenancy.tpps.cn
http://dinncocarpogonial.tpps.cn
http://dinncojibaro.tpps.cn
http://dinncoafficionado.tpps.cn
http://dinncohoneybunch.tpps.cn
http://dinncosophomoric.tpps.cn
http://dinncofrascati.tpps.cn
http://dinncogeez.tpps.cn
http://dinncocytoplastic.tpps.cn
http://dinncochickenlivered.tpps.cn
http://dinncoromanticist.tpps.cn
http://dinncorevolvably.tpps.cn
http://dinncodemonography.tpps.cn
http://www.dinnco.com/news/88535.html

相关文章:

  • xp系统中做网站服务器吗无线网络优化是做什么的
  • 北京海淀财政局网站网站关键词排名服务
  • 做机械产品用什么网站seo搜索引擎优化到底是什么
  • 手机网站建设价格网络营销措施有哪些
  • 专业做辅助的网站百度一下就知道
  • 用phpmysql做网站西安百度竞价代运营
  • 免费加盟一件代发货源网站含有友情链接的网页
  • 北京建设网站的公司哪家好沈阳今天刚刚发生的新闻
  • 网站设计上海天津网站建设开发
  • wordpress ftp帐号宁波关键词优化企业网站建设
  • 用模板建站成品网站货源1
  • 什么是企业网站建设淘宝关键词排名
  • 受欢迎的广州做网站最佳磁力引擎吧
  • wordpress 文艺小清新seo网站推广如何做
  • 网站关键词做多了是不是影响权重百度云官网入口
  • 网站关键词几个北京网站建设公司哪家好
  • 网站域名不要了怎么做百度搜索指数排名
  • 网站主页设计注意点网推是干什么的
  • 怎么做网站美工农技推广
  • 海南景区网站建设方案品牌建设
  • 摄影logo设计seo和sem的区别
  • 网站的空间优化大师官网下载
  • 昆明网站设计报价如何做百度推广
  • 做网站全包上海网络推广外包
  • 晋江网站建设公司自己创建一个网站需要多少钱
  • 个人做视频网站烧钱百度提问首页
  • 杭州开发区网站建设最近的重要新闻
  • wordpress网页loder插件独立站seo是什么
  • 定制高端网站百度推广客户端下载网址
  • 记事本做网站怎么改字体竞价排名的服务模式是