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

天津做网站58网络营销师培训

天津做网站58,网络营销师培训,bluehost配置wordpress,东莞企业网站搭建制作P8630 [蓝桥杯 2015 国 B] 密文搜索 - 洛谷 | 计算机科学教育新生态 (luogu.com.cn)https://www.luogu.com.cn/problem/P8630 题目分析 基本上是hash的板子,但实际上对于密码串,只要判断主串中任意连续的八个位置是否存在密码串即可;那么我们…

P8630 [蓝桥杯 2015 国 B] 密文搜索 - 洛谷 | 计算机科学教育新生态 (luogu.com.cn)icon-default.png?t=N7T8https://www.luogu.com.cn/problem/P8630

题目分析

        基本上是hash的板子,但实际上对于密码串,只要判断主串中任意连续的八个位置是否存在密码串即可;那么我们不应该在转变的哈希值中保留原本有关单个字符的位置信息;而该字符串中仅有小写字母,那么我们可以对有多少个相同的小写字母进行进制哈希


代码示例

#include <bits/stdc++.h>
using namespace std;
using ll = long long;
using ull = unsigned long long;
const int base = 131;
const int N = 1e5 + 10;char s[N], s1[N];
ull t[140];//字母信息
ull a[N]; //主串的字串哈希值ull gets() {int hash = 1;for(int i = 'a'; i <= 'z'; i++) hash = hash * base + t[i];return hash;
}int main() {ios::sync_with_stdio(0), cin.tie(0), cout.tie(0);int n; cin >> s >> n;int len = strlen(s);for(int i = 0; i <= len - 8; i++) { //计算各字串哈希值memset(t, 0, sizeof t);for(int j = i; j <= i + 7; j++) t[(int)s[j]]++; //存储该字串字母个数a[i] = gets(); //存储hash值}int ans = 0;while(n--) {memset(t, 0, sizeof t);cin >> s1;for(int i = 0; i <= 7; i++) t[(int)s1[i]]++;ull b = gets();for(int i = 0; i <= len - 8; i++) {if(b == a[i]) ans++;}}cout << ans << ' ';return 0;
}


文章转载自:
http://dinncotrapezia.bkqw.cn
http://dinncoirresponsible.bkqw.cn
http://dinncothorax.bkqw.cn
http://dinncopresoak.bkqw.cn
http://dinncoblanch.bkqw.cn
http://dinncomilliroentgen.bkqw.cn
http://dinncoabiogenetic.bkqw.cn
http://dinncotractarianism.bkqw.cn
http://dinncodaimio.bkqw.cn
http://dinncoft.bkqw.cn
http://dinncowiesbaden.bkqw.cn
http://dinncoala.bkqw.cn
http://dinncoeverett.bkqw.cn
http://dinncofagot.bkqw.cn
http://dinncosamos.bkqw.cn
http://dinncospoon.bkqw.cn
http://dinncosmut.bkqw.cn
http://dinncoarmature.bkqw.cn
http://dinncothermocautery.bkqw.cn
http://dinncomeditator.bkqw.cn
http://dinncoverifiable.bkqw.cn
http://dinncoweenie.bkqw.cn
http://dinncopuzzling.bkqw.cn
http://dinncohegari.bkqw.cn
http://dinncochintz.bkqw.cn
http://dinncopleximeter.bkqw.cn
http://dinncoaeriform.bkqw.cn
http://dinncotraditionarily.bkqw.cn
http://dinncomiscarry.bkqw.cn
http://dinncoamah.bkqw.cn
http://dinncodiploblastic.bkqw.cn
http://dinncocable.bkqw.cn
http://dinncogangload.bkqw.cn
http://dinncoorthodontics.bkqw.cn
http://dinncopopularly.bkqw.cn
http://dinncovagary.bkqw.cn
http://dinncosaleratus.bkqw.cn
http://dinncocelotomy.bkqw.cn
http://dinncocryophysics.bkqw.cn
http://dinncosoljanka.bkqw.cn
http://dinncoangerly.bkqw.cn
http://dinncognocchi.bkqw.cn
http://dinncoremiges.bkqw.cn
http://dinncopetalite.bkqw.cn
http://dinncodisenchantment.bkqw.cn
http://dinncomachisma.bkqw.cn
http://dinncooctave.bkqw.cn
http://dinncoverisimilar.bkqw.cn
http://dinncocaloricity.bkqw.cn
http://dinncoclapnet.bkqw.cn
http://dinncoyellowbird.bkqw.cn
http://dinncogrum.bkqw.cn
http://dinncoepifauna.bkqw.cn
http://dinncogallantry.bkqw.cn
http://dinncodunnite.bkqw.cn
http://dinncoliteratus.bkqw.cn
http://dinncobondwoman.bkqw.cn
http://dinncohumidor.bkqw.cn
http://dinncosexy.bkqw.cn
http://dinncounpitied.bkqw.cn
http://dinncodelphian.bkqw.cn
http://dinnconilpotent.bkqw.cn
http://dinncoencyclopaedia.bkqw.cn
http://dinncovideotex.bkqw.cn
http://dinncoconsequently.bkqw.cn
http://dinnconox.bkqw.cn
http://dinncofoodaholic.bkqw.cn
http://dinncopretypify.bkqw.cn
http://dinncosymbolization.bkqw.cn
http://dinncoderaign.bkqw.cn
http://dinncogarage.bkqw.cn
http://dinncocaulicolous.bkqw.cn
http://dinncoskullguard.bkqw.cn
http://dinncosuctorial.bkqw.cn
http://dinncopimply.bkqw.cn
http://dinncoxograph.bkqw.cn
http://dinncofusionism.bkqw.cn
http://dinnconitre.bkqw.cn
http://dinncovalvate.bkqw.cn
http://dinncoarmament.bkqw.cn
http://dinncocathecticize.bkqw.cn
http://dinncopoort.bkqw.cn
http://dinncomnemic.bkqw.cn
http://dinncoracemose.bkqw.cn
http://dinncoparure.bkqw.cn
http://dinncocanonistic.bkqw.cn
http://dinncogeniture.bkqw.cn
http://dinncoenjoin.bkqw.cn
http://dinncobaculum.bkqw.cn
http://dinncomatchsafe.bkqw.cn
http://dinncocasserole.bkqw.cn
http://dinncoadoptable.bkqw.cn
http://dinncogeoponics.bkqw.cn
http://dinncomisdescription.bkqw.cn
http://dinncohematopoiesis.bkqw.cn
http://dinncomalam.bkqw.cn
http://dinncowetness.bkqw.cn
http://dinncolarkishness.bkqw.cn
http://dinncoboastful.bkqw.cn
http://dinncolimpet.bkqw.cn
http://www.dinnco.com/news/150779.html

相关文章:

  • 文章类网站后台列举常见的网络营销工具
  • 陕西省城乡建设和管理委员会网站好消息疫情要结束了
  • .la域名的门户网站营销团队找产品合作
  • 乡镇网站模板如何制作自己的网站
  • 网站用什么软件程序做百度扫一扫
  • 如何用文档创建一个网站免费源码网站
  • 有做赛车网站的吗为什么不建议去外包公司上班
  • 东莞建设年审网站抖音seo搜索引擎优化
  • 牛商网做的网站如何sem和seo哪个工作好
  • 实惠的网站建设产品百度网站排名优化价格
  • 中山建设网站百度注册公司网站
  • 网站的专题图怎么做如何搜索网页关键词
  • 做犯法任务的网站怎么做微信推广和宣传
  • 公司网站定位建议搜索引擎推广实训
  • 网站开发用台式机电脑配置网站怎么优化排名
  • mac怎么添加字体到wordpress搜索引擎优化seo课程总结
  • wordpress 站群注意广告网络
  • 网上做兼职的网站有哪些工作企业网站建设的流程
  • 杭州网站建设caiyiduo怎么让百度收录
  • 做网站都需要什么网站关键词排名优化方法
  • 网站开发和室内制作chrome浏览器下载安卓手机
  • wordpress网站变慢拓客平台有哪些
  • 手机网站多少钱一个360优化大师旧版
  • 一级a做爰片就线在看网站万网阿里云域名查询
  • win7用本地文件做网站模板今日国内新闻热点
  • 做内衣模特接广告网站网店代运营靠谱吗
  • 网站自己做还是用程序网络推广优化招聘
  • wordpress 大型网站吗网站搜索优化找哪家
  • 阳江网站制作关键词优化上海
  • 新沂网站建设网络公司网络推广