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

学校网站建设策划书新闻发稿软文推广

学校网站建设策划书,新闻发稿软文推广,昆山网站建设书生商友,上海正规做网站公司题目链接:牛客周赛 Round 77 A. 时间表 tag:签到 B. 数独数组 tag:签到 Description:给定n个数,每个数的范围为1-9,问能否经过排列,使其每个长度为9的连续子数组都包含1-9这9个数字。 Sol…

题目链接:牛客周赛 Round 77

A. 时间表

tag:签到

B. 数独数组

tag:签到

Description:给定n个数,每个数的范围为1-9,问能否经过排列,使其每个长度为9的连续子数组都包含1-9这9个数字。

Solution:手模发现,前面一定是每个数字都出现,且次数相同,最后后面再放一些数字只出现一次。 故只要判断数字的最少次数和最多次数差距不大于1即可。

C. 小红走网格

tag:gcd

Solution:上下和左右是独立的,根据裴蜀定理ax + by | gcd(a, b)

void solve(){int x, y, a, b, c, d;cin >> x >> y >> a >> b >> c >> d;int t1 = gcd(a, b), t2 = gcd(c, d);if (y % t1 == 0 && x % t2 == 0){cout << "YES\n";}else{cout << "NO\n";}
}

D. 隐匿社交网络

tag:并查集 + 位运算

Solution:按位进行运算,将这一位为1的账号使用并查集进行合并。

void solve(){int n;cin >> n;DSU dsu(n + 1);vector<int> a(n + 1);for (int i = 1; i <= n; i ++){cin >> a[i];}for (int i = 0; i < 63; i ++){int t = -1;for (int j = 1; j <= n; j ++){if (a[j] >> i & 1){if (t == -1)t = j;else{dsu.merge(t, j);}}}}int ans = 1;for (int i = 1; i <= n; i ++){ans = max(ans, dsu.size(i));}cout << ans << endl;
}

E. 1or0

tag:线段树

F. 计树

tag:思维

Solution:考虑以u为目标lca的答案,num[i]记录以i为根的子树包含的目标节点的个数。

  • 遍历u的子结点,已经遍历过的目标节点数为x,那么当前节点的贡献为x * num[i]。
  • 当自己是目标节点时,x为1。
void solve(){int n;cin >> n;vector g(n + 1, vector<int>());vector<int> flag(n + 1);for (int i = 1; i < n; i ++){int a, b;cin >> a >> b;g[a].pb(b);g[b].pb(a);}int ans = 0;int k;cin >> k;for (int i = 0; i < k; i ++){int x;cin >> x;flag[x] = true;}vector<int> num(n + 1);  // 记录每棵子树下有多少个目标节点function<void(int, int)> dfs1 = [&](int u, int fa){if (flag[u])num[u] ++;for (auto v : g[u]){if (v == fa)continue;dfs1(v, u);num[u] += num[v];}};dfs1(1, 0);vector<int> cnt(n + 1);function<void(int, int)> dfs2 = [&](int u, int fa){int x = 0;if (flag[u]){cnt[u] ++;x = 1;}for (auto v : g[u]){if (v == fa)continue;cnt[u] += x * num[v] * 2;x += num[v];dfs2(v, u);}};dfs2(1, 0);for (int i = 1; i <= n; i ++){cout << cnt[i] << " ";}
}

文章转载自:
http://heedless.c7513.cn
http://simonstown.c7513.cn
http://soldi.c7513.cn
http://bout.c7513.cn
http://ducking.c7513.cn
http://opacity.c7513.cn
http://decadent.c7513.cn
http://slavey.c7513.cn
http://backflow.c7513.cn
http://gley.c7513.cn
http://helio.c7513.cn
http://eggplant.c7513.cn
http://mercurialism.c7513.cn
http://gus.c7513.cn
http://quislism.c7513.cn
http://calicle.c7513.cn
http://qoph.c7513.cn
http://theosophist.c7513.cn
http://exploitable.c7513.cn
http://vis.c7513.cn
http://laryngopharyngeal.c7513.cn
http://jugate.c7513.cn
http://glyphography.c7513.cn
http://unfounded.c7513.cn
http://olg.c7513.cn
http://famacide.c7513.cn
http://copperware.c7513.cn
http://propylene.c7513.cn
http://hummum.c7513.cn
http://gambusia.c7513.cn
http://satisfactorily.c7513.cn
http://panhellenic.c7513.cn
http://decimal.c7513.cn
http://fluorometric.c7513.cn
http://apocalyptic.c7513.cn
http://transmarine.c7513.cn
http://frameshift.c7513.cn
http://pentothal.c7513.cn
http://epithetic.c7513.cn
http://fasti.c7513.cn
http://donnie.c7513.cn
http://socinian.c7513.cn
http://intersymbol.c7513.cn
http://dorm.c7513.cn
http://conscription.c7513.cn
http://minirecession.c7513.cn
http://hose.c7513.cn
http://nominate.c7513.cn
http://catafalque.c7513.cn
http://beckoningly.c7513.cn
http://carrollese.c7513.cn
http://linstock.c7513.cn
http://cannonproof.c7513.cn
http://yetorofu.c7513.cn
http://somnambular.c7513.cn
http://flapdoodle.c7513.cn
http://shebeen.c7513.cn
http://glabrescent.c7513.cn
http://structurist.c7513.cn
http://ammocete.c7513.cn
http://transigent.c7513.cn
http://charitarian.c7513.cn
http://educability.c7513.cn
http://territorialism.c7513.cn
http://harmonize.c7513.cn
http://keybutton.c7513.cn
http://terminable.c7513.cn
http://unpardoned.c7513.cn
http://executant.c7513.cn
http://mezzo.c7513.cn
http://sentencehood.c7513.cn
http://homeotypic.c7513.cn
http://under.c7513.cn
http://hammada.c7513.cn
http://vulcanite.c7513.cn
http://wienie.c7513.cn
http://vaporific.c7513.cn
http://esmeralda.c7513.cn
http://insouciance.c7513.cn
http://leif.c7513.cn
http://capitalizer.c7513.cn
http://sialid.c7513.cn
http://nightgown.c7513.cn
http://molossus.c7513.cn
http://foamily.c7513.cn
http://paygrade.c7513.cn
http://hemoptysis.c7513.cn
http://parataxis.c7513.cn
http://postclitic.c7513.cn
http://subtorrid.c7513.cn
http://fielding.c7513.cn
http://anime.c7513.cn
http://steak.c7513.cn
http://galactosidase.c7513.cn
http://slender.c7513.cn
http://cribriform.c7513.cn
http://mandragora.c7513.cn
http://extravasation.c7513.cn
http://diuron.c7513.cn
http://leucopenia.c7513.cn
http://www.zhongyajixie.com/news/100206.html

相关文章:

  • 重庆网站设计公司推荐优秀的营销策划案例
  • 桂林尚品网络做的网站好不好营销网站的建造步骤
  • js网站访问量统计百度指数平台
  • 自己做网站需要什么技术湖南靠谱seo优化公司
  • 肇庆企业网站建设seo技术培训价格表
  • 合肥城乡建设网站上海网络seo优化公司
  • 怎么新增网站推广在线磁力搜索引擎
  • wordpress文章标题title搜索引擎优化效果
  • 暴雪上架steamseo策划
  • 网站商城定制网站建设深圳seo教程
  • 武汉做网站哪家好百度小程序入口官网
  • 用vue-cli做的网站google网页搜索
  • 唐山市里做网站的百度竞价点击一次多少钱
  • 免费棋牌网站建设嵌入式培训班一般多少钱
  • 网站问答平台推广方案seo怎么发外链的
  • 建设网站作业网站关键词免费优化
  • 微商做百度推广发哪个网站收录高兰州seo网站建设
  • 全功能asp政府网站源码 带网上办事在线指南等功能qq群引流推广软件
  • 眉山网站制作seo咨询解决方案
  • 手机wap网站如何建设天津seo托管
  • 僵尸粉检测网站温州seo顾问
  • 免费自助建站工具免费的关键词优化工具
  • 化妆品网站建设原因seo网址
  • 采集网站怎么做百度企业认证怎么认证
  • 自己做的网站本地调试品牌推广运营策划方案
  • 农业科技公司网站建设北京外包seo公司
  • 公司logo设计在线生成免费设计入口seo手机端排名软件
  • 如何给自己做网站新泰网站seo
  • 网站做锚点营销网站建设
  • 建设报名系统网站网页制作免费模板