qq820186690的女朋友
背景
qq820186690有许多女朋友,比如Achen、LXX2019、ZKX2019、xinyue......
常常有他的女朋友写小纸条给他。
描述
今天ZKX2019又给qq820186690写小纸条了,当大神Achen截获并打开小纸条时他就变成mengbier了,没有一个字看得懂!
经过他长达9*9=81天的分析,他发现这一个小纸条是经过加密的(废话!)
加密方式如下:
将'a'~'z'的字符与1~26的数字建立映射。明文就是密文字符对应的数字加上密钥k再mod26后+1的值对应的字符。
将'A'~'Z'的字符与27~52的数字建立映射。明文就是密文字符对应的数字加上密钥k再mod26后+27的值对应的字符。
然而你却并不知道密钥k(哈哈哈哈哈哈哈哈哈哈哈)
比如'a'对应的明文是1*k%26+1,当k=23时,'a'的明文就是1+23%26+1='y','A'对应27+23%26+27=52,即'Y'
于是Achen开始高高兴兴的破解密文了。可是终于有一天,Achen在堆积成山的qq820186690的情书中崩溃了,他给你说:“老兄,麻烦你写个程序吧!否则马上我就要被qq820186690 xxx了。”他答应在完成后给你1000000000000000000000%10RMB的奖赏。
格式
输入格式
qq820186690的女朋友写给他的小纸条,全由字符与数字构成。
输出格式
小纸条对应的明文。
样例1
样例输入1
Bcyp oo820186690,
G ilmu rfcpc'q yl macyl zcruccl sq,
ylb G ugqf rfyr gr ucpcl'r rpsc,
dmp ctcpw byw ufcl G ypgqc,
G wcypl rm zc ugrf wms.
Rfmsef y jmr md bgqrylac jgcq zcruccl sq,
wms'jj yjuywq zc gl kw kglb ylb kw fcypr,
Ylb ctcpw lgefr zclcyrf rfc qrypq,
G npyw dmp rfc byw uc'jj lctcp zc nypr.
Ctcpw byw G ugjj zc rfgligle yzmsr wms. Ufcl kw cwcq ypc ajmqcb, ufcl G qgle ylb bylac rm y jmtc qmle, ufcl G'k afcaigle kw ckygj, G ugjj zc rfgligle yzmsr wms. Ufcl G em rm qjccn gl rfc jmlcjglcqq md kw pmmk ylb egtc gl rm umlbcpdsj bpcykq G ugjj bcdglgrcjw zc rfgligle yzmsr wms.
G ilmu qmkcbyw uc ugjj kccr ylb qnclb msp jgtcq ugrf cyaf mrfcp. G fytc uygrcb dmp qmkcmlc jgic wms, ylb lmu rfyr G fytc dmslb wms G ugjj lctcp jcr wms em. G jmtc wms qm ksaf, oo820186690!!
Jmtc Yjuywq,
XIV2019
样例输出1
Dear qq820186690,
I know there's an ocean between us,
and I wish that it weren't true,
for every day when I arise,
I yearn to be with you.
Though a lot of distance lies between us,
you'll always be in my mind and my heart,
And every night beneath the stars,
I pray for the day we'll never be part.
Every day I will be thinking about you. When my eyes are closed, when I sing and dance to a love song, when I'm checking my email, I will be thinking about you. When I go to sleep in the loneliness of my room and give in to wonderful dreams I will definitely be thinking about you.
I know someday we will meet and spend our lives with each other. I have waited for someone like you, and now that I have found you I will never let you go. I love you so much, qq820186690!!
Love Always,
ZKX2019
限制
每个测试点1.5s
提示
输入文件大小不超过1000K且远大于样例数据。
数据保证没有单词拼写错误或语法错误。
后记
Achen被qq820186690 xxx后的感叹:“我励志于截获小纸条,一天不看qq820186690的小纸条,我浑身难受!今后我还会继续破解qq820186690的小纸条,直到qq820186690的女朋友只剩我一个人,哈哈哈哈哈哈哈哈哈!”
Source
Bill_Yang改编自Matrix67
相关
在下列比赛中: