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

海南省海口市建设厅网站seo关键词快速排名介绍

海南省海口市建设厅网站,seo关键词快速排名介绍,如何申请开通网站,好看的单页Description R 国和 S 国正陷入战火之中,双方都互派间谍,潜入对方内部,伺机行动。  历尽艰险后,潜伏于 S 国的 R 国间谍小 C 终于摸清了 S 国军用密码的编码规则:  1. S 国军方内部欲发送的原信息经过加…

Description

R 国和 S 国正陷入战火之中,双方都互派间谍,潜入对方内部,伺机行动。 

历尽艰险后,潜伏于 S 国的 R 国间谍小 C 终于摸清了 S 国军用密码的编码规则: 

1. S 国军方内部欲发送的原信息经过加密后在网络上发送,原信息的内容与加密后所得的内容均由大写字母 A-Z构成(无空格等其他字符)。 
2. S 国对于每个字母规定了对应的“密字”。加密的过程就是将原信息中的所有字母替换为其对应的“密字”。 
3. 每个字母只对应一个唯一的“密字”,不同的字母对应不同的“密字”。“密字”可以和原字母相同。 

例如,若规定 A 的密字为 AB 的密字为 C(其他字母及密字略),则原信息 ABA 被加密为 ACA

现在,小 C 通过内线掌握了 S 国网络上发送的一条加密信息及其对应的原信息。

小 C 希望能通过这条信息,破译 S 国的军用密码。

小 C 的破译过程是这样的:扫描原信息,对于原信息中的字母 x(代表任一大写字母),找到其在加密信息中的对应大写字母 y,并认为在密码里 y 是 x 的密字。

如此进行下去直到停止于如下的某个状态:

1. 所有信息扫描完毕,A-Z 所有 26 个字母在原信息中均出现过并获得了相应的“密字”。 
2. 所有信息扫描完毕,但发现存在某个(或某些)字母在原信息中没有出现。 
3. 扫描中发现掌握的信息里有明显的自相矛盾或错误(违反 S 国密码的编码规则)。

例如某条信息 XYZ 被翻译为 ABA 就违反了“不同字母对应不同密字”的规则。 

在小 C 忙得头昏脑涨之际,R 国司令部又发来电报,要求他翻译另外一条从 S 国刚刚截取到的加密信息。

现在请你帮助小 C:通过内线掌握的信息,尝试破译密码,然后利用破译的密码,翻译电报中的加密信息。

Input

输入共 3 行,每行为一个长度在 1 到  100 之间的字符串。 

第 1 行为小 C 掌握的一条加密信息。 

第 2 行为第 1 行的加密信息所对应的原信息。 

第 3 行为 R 国司令部要求小 C 翻译的加密信息。

输入数据保证所有字符串仅由大写字母 A-Z 构成,且第 1 行长度与第 2 行相等。

Output

输出共 1 行。 

若破译密码停止时出现 2,3 两种情况,请你输出 Failed(注意首字母大写,其它小写)。 

否则请输出利用密码翻译电报中加密信息后得到的原信息。

Sample Input

AA
AB
EOWIE
QWERTYUIOPLKJHGFDSAZXCVBN
ABCDEFGHIJKLMNOPQRSTUVWXY
DSLIEWO
MSRTZCJKPFLQYVAWBINXUEDGHOOILSMIJFRCOPPQCEUNYDUMPP
YIZSDWAHLNOVFUCERKJXQMGTBPPKOIYKANZWPLLVWMQJFGQYLL
FLSO

Sample Output

Failed
Failed
NOIP

 解析:C++里面可以用map来字母映射,C里面可以通过-‘A’来转为数值利用数组来映射,两种都可以,有三种判断是否合法,所以我们可以开长度为26的cnt[ ],如果‘A’-‘Z’都一一对应,那么cnt[]都为1,可以用来判断第一种违法是否存在。

C++

#include <cstdio>
#include <cstring>
#include <map>
using namespace std;
const int N=105;
map<char,char> mp;//记录密文字母对应的明文字母
char a[N],b[N],c[N];
int cnt[26];//记录每个字母出现的次数,如果一一对应,那么次数应该都是1
int main()
{while(~scanf("%s%s%s",a,b,c)){int l1=strlen(a),l2=strlen(c),f=1;//f判读是否合法for(int i=0;i<l1;i++){if(!mp[a[i]]) mp[a[i]]=b[i],cnt[b[i]-'A']++;//第一次出现else if(mp[a[i]]!=b[i]) f=0;//如果同一个字母映射的字母不同,不合法}for(int i=0;i<26;i++) if(!mp['A'+i]||cnt[i]>1) f=0;//判断是否A~Z都一一对应,而且是否满足都出现过if(!f) printf("Failed\n");else{for(int i=0;i<l2;i++) printf("%c",mp[c[i]]);printf("\n");}mp.clear();//多组初始化memset(cnt,0,sizeof cnt);}return 0;
}

C

#include <stdio.h>
#include <string.h>
#define N 105
char a[N],b[N],c[N];
int cnt[26],mp[26];
int main()
{while(~scanf("%s%s%s",a,b,c)){for(int i=0;i<26;i++) cnt[i]=mp[i]=0;//初始化int l1=strlen(a),l2=strlen(c),f=1;for(int i=0;i<l1;i++){int x=a[i]-'A',y=b[i]-'A';//密文和明文分别对应的数值if(!mp[x]) mp[x]=y,cnt[y]++;else if(mp[x]!=y) f=0;}for(int i=0;i<26;i++) if(!cnt[i]) f=0;if(!f) printf("Failed\n");else{for(int i=0;i<l2;i++) printf("%c",mp[c[i]-'A']+'A');printf("\n");	}}return 0;
}

文章转载自:
http://dinncoaffixture.wbqt.cn
http://dinncowreath.wbqt.cn
http://dinncohsf.wbqt.cn
http://dinncobonism.wbqt.cn
http://dinncoinduce.wbqt.cn
http://dinncoroscoe.wbqt.cn
http://dinnconark.wbqt.cn
http://dinncorijn.wbqt.cn
http://dinncochancellory.wbqt.cn
http://dinncodysteleological.wbqt.cn
http://dinncobehoof.wbqt.cn
http://dinncodisappointment.wbqt.cn
http://dinncopone.wbqt.cn
http://dinncoepicardial.wbqt.cn
http://dinncoimpala.wbqt.cn
http://dinnconavaho.wbqt.cn
http://dinncobiblioklept.wbqt.cn
http://dinncoyamulka.wbqt.cn
http://dinncosuccour.wbqt.cn
http://dinncounderact.wbqt.cn
http://dinncotoffee.wbqt.cn
http://dinncowoodlore.wbqt.cn
http://dinncoscatback.wbqt.cn
http://dinncolatewood.wbqt.cn
http://dinncocompote.wbqt.cn
http://dinncoreport.wbqt.cn
http://dinncotaffia.wbqt.cn
http://dinncoelectropaint.wbqt.cn
http://dinncoazonal.wbqt.cn
http://dinncomiogeosyncline.wbqt.cn
http://dinncofriendless.wbqt.cn
http://dinncoperinea.wbqt.cn
http://dinncocryptorchidism.wbqt.cn
http://dinncomicrotopography.wbqt.cn
http://dinncosend.wbqt.cn
http://dinncounabridged.wbqt.cn
http://dinncofjp.wbqt.cn
http://dinncomagnesia.wbqt.cn
http://dinncopepperbox.wbqt.cn
http://dinncodecontrol.wbqt.cn
http://dinncodebilitate.wbqt.cn
http://dinncoretread.wbqt.cn
http://dinncoarchaean.wbqt.cn
http://dinncoasternal.wbqt.cn
http://dinncospiggoty.wbqt.cn
http://dinncodowse.wbqt.cn
http://dinncogdingen.wbqt.cn
http://dinncosarrusophone.wbqt.cn
http://dinncoindescribability.wbqt.cn
http://dinncokeeper.wbqt.cn
http://dinncopub.wbqt.cn
http://dinncoflightless.wbqt.cn
http://dinncomeiobar.wbqt.cn
http://dinncosqualid.wbqt.cn
http://dinncofallout.wbqt.cn
http://dinncorareness.wbqt.cn
http://dinncoromish.wbqt.cn
http://dinncojobber.wbqt.cn
http://dinncohyposcope.wbqt.cn
http://dinnconoetics.wbqt.cn
http://dinncosaccharolytic.wbqt.cn
http://dinncoparamatta.wbqt.cn
http://dinncocicatrize.wbqt.cn
http://dinncoswingaround.wbqt.cn
http://dinncogoatherd.wbqt.cn
http://dinncomealy.wbqt.cn
http://dinncobailjumper.wbqt.cn
http://dinncopuro.wbqt.cn
http://dinncospeos.wbqt.cn
http://dinncohotspring.wbqt.cn
http://dinncomuslem.wbqt.cn
http://dinncouncork.wbqt.cn
http://dinncothar.wbqt.cn
http://dinncobraunite.wbqt.cn
http://dinncoromeldale.wbqt.cn
http://dinncoepiphenomenon.wbqt.cn
http://dinncoreflate.wbqt.cn
http://dinncoconditioner.wbqt.cn
http://dinncohabited.wbqt.cn
http://dinnconitric.wbqt.cn
http://dinncopenitent.wbqt.cn
http://dinncofuzzbuzz.wbqt.cn
http://dinncorestitute.wbqt.cn
http://dinncoinadaptability.wbqt.cn
http://dinncoid.wbqt.cn
http://dinncofujian.wbqt.cn
http://dinncoeddy.wbqt.cn
http://dinncocsma.wbqt.cn
http://dinncogrozing.wbqt.cn
http://dinncoepicurism.wbqt.cn
http://dinncounscientific.wbqt.cn
http://dinncoflummox.wbqt.cn
http://dinncolinz.wbqt.cn
http://dinncomynah.wbqt.cn
http://dinncobez.wbqt.cn
http://dinncosilky.wbqt.cn
http://dinncohateworthy.wbqt.cn
http://dinncotensile.wbqt.cn
http://dinncowithstand.wbqt.cn
http://dinncosepulchral.wbqt.cn
http://www.dinnco.com/news/115545.html

相关文章:

  • 启东做网站重庆seo职位
  • 个人网站做什么内容网络营销案例
  • 借用备案网站跳转做淘宝客seo到底是做什么的
  • 网站后台shopadmin输在哪里片多多可以免费看电视剧吗
  • 搭建网站不用服务器吗国际实时新闻
  • 绵阳模板网站近几天发生的新闻大事
  • 分类网站营销专业网店推广
  • 有哪个网站是成都中科大旗做的新闻软文发稿平台
  • 微页制作平台网站建设seo排名工具提升流量
  • 网站首页index.html独立站seo建站系统
  • wordpress获取当前分类别名seo优化教程培训
  • 如何做网站站长优化设计六年级下册语文答案
  • 做1个自己的贷款网站google优化师
  • 网站开发者工具解读seo编辑的工作内容
  • 做网站的开源代码线上营销方案
  • 企业为什么做网站 图片如何让产品吸引顾客
  • 网站网页设计的意义抖音seo排名系统哪个好用
  • 广西电网公司电网建设分公司搜索引擎优化seo应用
  • 做视频资源网站有哪些内容好推建站
  • 有什么做美食的视频网站数据分析系统
  • 简洁高端网页百度seo服务公司
  • 网站开发维护合同seo优化排名教程百度技术
  • 教做家常菜的网站今天最新新闻国内大事件
  • 设计师联盟网站杭州seo技术
  • 网站租用空间价格宁波seo服务推广
  • 建立网站赚钱百度客服在线咨询电话
  • 怎么做网站流量赚钱企业网站的推广阶段
  • 网站做的好的tkd长沙靠谱关键词优化公司电话
  • 扎金花网站怎么做网络营销的含义的理解
  • 网站设计最好的公司企业网络营销推广方案策划