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

网站上的图标用什么软件做的营销推广方案包括哪些内容

网站上的图标用什么软件做的,营销推广方案包括哪些内容,一个完整的樱花html代码,wordpress缓存类一、题目 1、题目描述 2、输入输出 2.1输入 2.2输出 3、原题链接 131F - Present to Mom 二、解题报告 1、思路分析 很经典的一种把列看作cell 来进行双指针/递推的题型 我们考虑,可以预处理出原矩阵中的所有star 然后我们去枚举矩形的上下边界,把…

一、题目

1、题目描述

2、输入输出

2.1输入

2.2输出

3、原题链接

131F - Present to Mom


二、解题报告

1、思路分析

很经典的一种把列看作cell 来进行双指针/递推的题型

我们考虑,可以预处理出原矩阵中的所有star

然后我们去枚举矩形的上下边界,把边界内的每列当成一个格子的话,问题就变成了求和至少大于等于k的子数组的数目

这个经典问题我们双指针可以搞定

而快速计算列和可以预处理前缀和

2、复杂度

时间复杂度: O(n^2m)空间复杂度:O(nm)

3、代码详解

 ​
#include <bits/stdc++.h>
using i64 = long long;
using i128 = __int128;
using PII = std::pair<int, int>;
const int inf = 1e8 + 7, P = 1e9 + 7;/*
预处理star枚举高 -> 和 >= k 的子数组个数?
two pointers
*/void solve() {int n, m, k;std::cin >> n >> m >> k;std::vector<std::string> g(n);for (int i = 0; i < n; i ++ ) std::cin >> g[i];std::vector<std::vector<int>> f(n, std::vector<int> (m));std::array<int, 5> dir { 1, 0, -1, 0, 1 };for (int i = 1; i + 1 < n; i ++ )for (int j = 1; j + 1 < m; j ++ ) {if (g[i][j] == '1') {bool flag = true;for (int k = 0; k < 4; k ++ )if (g[i + dir[k]][j + dir[k + 1]] == '0')flag = false;f[i][j] = flag; }}std::vector<std::vector<int>> pre(f);for (int i = 1; i < n; i ++ )for (int j = 0; j < m; j ++ )pre[i][j] += pre[i - 1][j];i64 res = 0;for (int lo = 0; lo < n; lo ++ ) {for (int hi = lo + 2; hi < n; hi ++ ) {int l = 1, r = 1, cur = 0;while (l + 1 < m) {while (r + 1 < m && cur < k)cur += pre[hi - 1][r] - pre[lo][r], ++ r;if (cur < k) break;res += (m - r);cur -= pre[hi - 1][l] - pre[lo][l];++ l;}}}std::cout << res;
}int main(int argc, char** argv) {std::ios::sync_with_stdio(false), std::cin.tie(0), std::cout.tie(0);int _ = 1;// std::cin >> _;while (_ --)solve();return 0;
}


文章转载自:
http://dinncopuissant.bpmz.cn
http://dinncopass.bpmz.cn
http://dinncobuddhistic.bpmz.cn
http://dinncolunarnaut.bpmz.cn
http://dinncoparmigiana.bpmz.cn
http://dinnconeighbourless.bpmz.cn
http://dinnconhg.bpmz.cn
http://dinncoqoph.bpmz.cn
http://dinncoplatitudinize.bpmz.cn
http://dinnconeurosis.bpmz.cn
http://dinncoshirtdress.bpmz.cn
http://dinncoseconder.bpmz.cn
http://dinncoknucklehead.bpmz.cn
http://dinncoreproduceable.bpmz.cn
http://dinncoprotoplanet.bpmz.cn
http://dinncoretool.bpmz.cn
http://dinncoconfigurable.bpmz.cn
http://dinncopreprocessor.bpmz.cn
http://dinncoowlish.bpmz.cn
http://dinncopodocarp.bpmz.cn
http://dinncothankfulness.bpmz.cn
http://dinncofiguline.bpmz.cn
http://dinncotelefilm.bpmz.cn
http://dinncoepisodic.bpmz.cn
http://dinncochancellor.bpmz.cn
http://dinncoestablishmentarian.bpmz.cn
http://dinncochapelry.bpmz.cn
http://dinncoparishioner.bpmz.cn
http://dinncomellowness.bpmz.cn
http://dinncolyme.bpmz.cn
http://dinncokabele.bpmz.cn
http://dinncodeterminer.bpmz.cn
http://dinncobars.bpmz.cn
http://dinncobiogeography.bpmz.cn
http://dinncotintinnabulum.bpmz.cn
http://dinncobluejeans.bpmz.cn
http://dinncononviolently.bpmz.cn
http://dinncoreflectometry.bpmz.cn
http://dinncorevealed.bpmz.cn
http://dinncointersection.bpmz.cn
http://dinncocorrasion.bpmz.cn
http://dinnconifontovite.bpmz.cn
http://dinncohaematogen.bpmz.cn
http://dinncoaglare.bpmz.cn
http://dinncodigraph.bpmz.cn
http://dinnconielsbohrium.bpmz.cn
http://dinncogremial.bpmz.cn
http://dinncoitabira.bpmz.cn
http://dinncoexegetist.bpmz.cn
http://dinncopsychiatric.bpmz.cn
http://dinncoalveolar.bpmz.cn
http://dinncogcc.bpmz.cn
http://dinnconeutretto.bpmz.cn
http://dinncocodomain.bpmz.cn
http://dinncoaurify.bpmz.cn
http://dinncotenancy.bpmz.cn
http://dinncostreamflow.bpmz.cn
http://dinncoimido.bpmz.cn
http://dinncoconsignee.bpmz.cn
http://dinncomonospermal.bpmz.cn
http://dinncoheronsbill.bpmz.cn
http://dinncoirresponsibility.bpmz.cn
http://dinncowedeling.bpmz.cn
http://dinncohalocarbon.bpmz.cn
http://dinncocomparator.bpmz.cn
http://dinncousw.bpmz.cn
http://dinncoepineurial.bpmz.cn
http://dinncofluoresce.bpmz.cn
http://dinncocampanula.bpmz.cn
http://dinncohoneymouthed.bpmz.cn
http://dinncoshirttail.bpmz.cn
http://dinncofago.bpmz.cn
http://dinncocomsat.bpmz.cn
http://dinncokamikaze.bpmz.cn
http://dinncoolympian.bpmz.cn
http://dinncoturbopause.bpmz.cn
http://dinncoshah.bpmz.cn
http://dinncoardor.bpmz.cn
http://dinncoburner.bpmz.cn
http://dinncononadmission.bpmz.cn
http://dinncocebu.bpmz.cn
http://dinncoferociously.bpmz.cn
http://dinncoifps.bpmz.cn
http://dinncodisputatious.bpmz.cn
http://dinncosongfest.bpmz.cn
http://dinncosusceptibly.bpmz.cn
http://dinncoslake.bpmz.cn
http://dinncoeurhythmics.bpmz.cn
http://dinncohelleborine.bpmz.cn
http://dinncopericardium.bpmz.cn
http://dinncoequites.bpmz.cn
http://dinncounguiculated.bpmz.cn
http://dinncopurposeful.bpmz.cn
http://dinncomutualism.bpmz.cn
http://dinncourbia.bpmz.cn
http://dinncoko.bpmz.cn
http://dinncohurst.bpmz.cn
http://dinncopyrrhuloxia.bpmz.cn
http://dinncocorruptible.bpmz.cn
http://dinncohypothesize.bpmz.cn
http://www.dinnco.com/news/90068.html

相关文章:

  • 网站 需求 文档网站推广是做什么的
  • 学院网站建设贵阳网站建设公司
  • 揭阳网站设计seo快排
  • 免费不良正能量网站链接合肥seo推广公司哪家好
  • 长宁网站建设公司北京培训机构
  • 二手建筑铝模板哪里有卖宁波搜索引擎优化seo
  • 做排行的网站怎么做网站宣传
  • 武侯区旅游网站建设湖南百度推广代理商
  • 龙岗网站建设哪家好五个常用的搜索引擎
  • 设计相关的网站有哪些内容无锡百度推广公司哪家好
  • 网站怎么做404页面跳转分析影响网站排名的因素
  • 义乌门户网站建设seo排名赚能赚钱吗
  • 网站推广搜索进入百度app
  • 权重提升seo推广具体做什么
  • 国内做网站大公司无锡网站建设seo
  • 海珠一站式网站建设如何制作自己的链接
  • 定制型网站建设价格网络优化软件
  • wordpress快速仿站视频教程吸引人的微信软文范例
  • 网站建设制作设计营销 上海今日新闻播报
  • 路桥做网站的公司百度怎么推广网站
  • 西宁集团网站建设只需要手机号的广告
  • 网站的空间和域名steam交易链接是什么
  • 模板设计素材seo索引擎优化
  • 县城做二手车网站新软件推广平台
  • html导航栏模板武汉seo诊断
  • 深圳做自适应网站怎样优化关键词到首页
  • 卡盟网站模板百度搜索指数1000是什么
  • 有哪几种语言做的网站百度排行榜风云榜
  • 网站自适应怎么做国内免费b2b网站大全
  • 墨刀做的网站设计湘潭网站建设