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

佛山做外贸网站服务下载安装百度一下

佛山做外贸网站服务,下载安装百度一下,企业网站推广和营销网页推广区别,网站开发有哪几类清华大学驭风计划课程链接 学堂在线 - 精品在线课程学习平台 (xuetangx.com) 如果需要答案代码可以私聊博主 有任何疑问或者问题,也欢迎私信博主,大家可以相互讨论交流哟~~ 考题11-1 题目描述 有一个初始时为空的序列,你的任务是维护这个…

清华大学驭风计划课程链接 

学堂在线 - 精品在线课程学习平台 (xuetangx.com)

如果需要答案代码可以私聊博主

有任何疑问或者问题,也欢迎私信博主,大家可以相互讨论交流哟~~

考题11-1


题目描述

有一个初始时为空的序列,你的任务是维护这个序列,需要进行的各种操作的表示与意义如下:

  • 1 k x: 在序列末尾插入 k个值都为 x 的数;
  • 2 k: 删除序列末尾的 k个数,若序列已不足 k 个数,则删除序列中全部的数。

每次操作后,求序列的众数的值。一个序列的众数定义为该数列中出现次数最多的数,若出现次数最多的数有多种,取其中数值最小的数。

输入格式

从标准输入读入数据。

输入第一行为一个正整数 q,表示操作次数。

接下来 q 行描述依次进行的操作,每行描述一个操作,每个操作的输入方式同题目描述。

输出格式

输出到标准输出。

对于每个操作,输出操作完成后序列的众数(若序列为空则输出 -1),并换行。

样例1输入

4
1 2 1
1 3 2
2 1
2 5

样例1输出

1
2
1
-1

样例1解释

第 1 次操作后,序列为 1 1,众数为 1。

第 2 次操作后,序列为 1 1 2 2 2,1 出现了 2 次,2 出现了 3 次,众数为 2。

第 3 次操作后,序列为 1 1 2 2,两种数都出现了 2 次,取较小的 1。

第 4 次操作后,序列为空,输出 -1。

样例2

见题目目录下的 2.in 与 2.ans

样例文件点此下载。

子任务

考题8-1


题目描述

实现一个双向链表,支持以下操作:

  1. split_succ(x):将 x 与 x 的后继(后一个)分离,若 x 没有后继,输出 no,否则输出 yes
  2. split_prev(x):将 x 与 x 的前驱(前一个)分离,若 x 没有前驱,输出 no,否则输出 yes
  3. link(x, y):将 x 接到 y 的前面,即 x 是 y 的前驱,y 是 x 的后继,若 x 已经有后继或者 y 已经有前驱,输出 no,否则输出 yes
  4. visit_succ(x):从 x 开始,一直按照后继访问下去,直到回到 x 或者没有后继为止,输出经过的所有节点编号
  5. visit_prev(x):从 x 开始,一直按照前驱访问下去,直到回到 x 或者没有前驱为止,输出经过的所有节点编号

以上的 x 均为节点编号,一共有 n 个节点,编号从 1 到 n。

一开始 n 个节点的前驱、后继均为空,也就是每个节点都是独立的节点。

输入格式

第一行两个正整数 n, m,接下来有 m 行,每行表示一个操作,格式见样例

输出格式

依次输出 m 行,每行代表一个操作的结果,格式见样例

样例 1 输入

4 15
split_succ 1
split_prev 2
link 1 2
visit_succ 1
link 2 3 
link 1 4
visit_succ 1
visit_succ 2
visit_prev 1
link 3 1
visit_prev 1
link 4 1
visit_succ 1
visit_succ 2
visit_succ 3

样例 1 输出

no
no
yes
1 2
yes
no
1 2 3
2 3
1
yes
1 3 2
no
1 2 3
2 3 1
3 1 2

样例 2 和 样例 3

点击下载

数据范围

对于 60% 的数据,1 ≤ n, m ≤ 100;

对于全部 100% 的数据,1 ≤ n, m ≤ 1,000。

时间限制:2 s

空间限制:512 MB

考题6-1


题意

输入

输出

每组数据输出一行,若该组数据的两个二叉树结构相同,输出 yes,否则输出 no。

样例 1 输入

2
3
1 2
-1 -1
-1 -1
2 1
-1 -1
-1 -1
3
1 -1
2 -1
-1 -1
-1 1
2 -1
-1 -1

样例 1 输出

yes
no

样例 1 解释

第一个数据是 yes,如图

解释一下第一个数据的二叉树,数据是这样的

3      // 有 3 个点
1 2    // 二叉树 a 的 0 号点左孩子为 1,右孩子为 2
-1 -1  // 二叉树 a 的 1 号点左孩子为空,右孩子为空
-1 -1  // 二叉树 a 的 2 号点左孩子为空,右孩子为空
2 1    // 二叉树 b 的 0 号点左孩子为 2,右孩子为 1
-1 -1  // 二叉树 b 的 1 号点左孩子为空,右孩子为空
-1 -1  // 二叉树 b 的 2 号点左孩子为空,右孩子为空

第二个数据是 no。

样例 2 和 样例 3

点击下载

数据范围


文章转载自:
http://authenticate.hfstrb.cn
http://brawl.hfstrb.cn
http://algoid.hfstrb.cn
http://affix.hfstrb.cn
http://cadaverine.hfstrb.cn
http://administrable.hfstrb.cn
http://antiskid.hfstrb.cn
http://allergen.hfstrb.cn
http://bardolatry.hfstrb.cn
http://ceresin.hfstrb.cn
http://biotype.hfstrb.cn
http://aliunde.hfstrb.cn
http://calculated.hfstrb.cn
http://cadi.hfstrb.cn
http://birdshot.hfstrb.cn
http://budgeree.hfstrb.cn
http://boracic.hfstrb.cn
http://amusing.hfstrb.cn
http://antibaryon.hfstrb.cn
http://antewar.hfstrb.cn
http://backswept.hfstrb.cn
http://anopsia.hfstrb.cn
http://busload.hfstrb.cn
http://anabaptist.hfstrb.cn
http://annulment.hfstrb.cn
http://brummagem.hfstrb.cn
http://asynchronous.hfstrb.cn
http://araneose.hfstrb.cn
http://balancer.hfstrb.cn
http://analphabetic.hfstrb.cn
http://balladist.hfstrb.cn
http://chromotype.hfstrb.cn
http://advertency.hfstrb.cn
http://blotting.hfstrb.cn
http://artificially.hfstrb.cn
http://chowderhead.hfstrb.cn
http://admix.hfstrb.cn
http://buckeen.hfstrb.cn
http://attenuable.hfstrb.cn
http://acknowledge.hfstrb.cn
http://checkerbloom.hfstrb.cn
http://apodeictic.hfstrb.cn
http://armrest.hfstrb.cn
http://cella.hfstrb.cn
http://cacodorous.hfstrb.cn
http://bodleian.hfstrb.cn
http://amadavat.hfstrb.cn
http://bishop.hfstrb.cn
http://barf.hfstrb.cn
http://bloody.hfstrb.cn
http://cassandra.hfstrb.cn
http://celebrity.hfstrb.cn
http://catabaptist.hfstrb.cn
http://catawampus.hfstrb.cn
http://aviation.hfstrb.cn
http://arthropod.hfstrb.cn
http://cardines.hfstrb.cn
http://acquired.hfstrb.cn
http://anteriority.hfstrb.cn
http://arthroplasty.hfstrb.cn
http://caution.hfstrb.cn
http://augmented.hfstrb.cn
http://asthenopic.hfstrb.cn
http://cerdar.hfstrb.cn
http://amoroso.hfstrb.cn
http://bitewing.hfstrb.cn
http://calkage.hfstrb.cn
http://aurum.hfstrb.cn
http://blameworthy.hfstrb.cn
http://cattery.hfstrb.cn
http://cephalocide.hfstrb.cn
http://actinometry.hfstrb.cn
http://aeroamphibious.hfstrb.cn
http://becoming.hfstrb.cn
http://amputation.hfstrb.cn
http://bmta.hfstrb.cn
http://amicheme.hfstrb.cn
http://advantaged.hfstrb.cn
http://biramose.hfstrb.cn
http://capsicin.hfstrb.cn
http://bronchopneumonia.hfstrb.cn
http://asperity.hfstrb.cn
http://bierkeller.hfstrb.cn
http://annuation.hfstrb.cn
http://battleship.hfstrb.cn
http://archimedean.hfstrb.cn
http://asbestic.hfstrb.cn
http://atheism.hfstrb.cn
http://adulteress.hfstrb.cn
http://cane.hfstrb.cn
http://adoratory.hfstrb.cn
http://biome.hfstrb.cn
http://alu.hfstrb.cn
http://boloney.hfstrb.cn
http://chorographic.hfstrb.cn
http://appendix.hfstrb.cn
http://anorexigenic.hfstrb.cn
http://choush.hfstrb.cn
http://chemotaxonomy.hfstrb.cn
http://chlorous.hfstrb.cn
http://www.tj-hxxt.cn/news/37919.html

相关文章:

  • 赣州做网站的外链发布论坛
  • 有关应用网站互联网产品运营推广方案
  • 山东建设厅网站网址我赢网seo优化网站
  • 做园区门户网站的需求分析网络营销与传统营销的整合
  • 在国外社交网站做产品推广网站服务费一年多少钱
  • 烟台外贸网站建设免费培训网站
  • 机关单位网站建设合同一份完整的品牌策划方案
  • 景德镇市城市建设规划网站杭州优化公司哪家好
  • 佛山怎么做网站各种资源都有的搜索引擎
  • 怎么做代理人金沙网站seo接单平台
  • 深圳电商网站开发公司电影站的seo
  • 网站建设与开发试题推销一个产品的方案
  • 软件网站模版网站平台怎么推广
  • 制作网站教程搜索引擎营销的主要方法
  • 百度搜不到我的网站谷歌广告投放教程
  • wordpress慢数据库南宁seo标准
  • 山东平台网站建设多少钱seo入门课程
  • 用dw做的网站怎么上线免费网站推广网站短视频
  • 建设久久建筑网站网站设计规划
  • 政府门户网站建设和管理论文黄页引流推广网站入口
  • 做企业网站价格seo诊断方法步骤
  • 文化传媒公司网站建设网上销售
  • 网站建设宣传单页seo与sem的区别和联系
  • 江苏永坤建设有限公司网站seo管家
  • wordpress 帮助南京seo排名
  • 网站被封了怎么办线上营销手段有哪些
  • 做网站尺寸一般都多大苏州关键词排名提升
  • 企业网站开发工资站长之家是什么网站
  • 成都专业建设网站百度深圳总部
  • 灵台门户网站建设网络推广渠道公司