xmu 1012
来源:互联网 发布:淘宝手机怎么换购 编辑:程序博客网 时间:2024/05/18 03:23
很多人的电脑里面都有一些隐私,TheBeet也不例外。为了保护这些东西不被别人发现,TheBeet写了一个加密程序加密。不过今天,很不幸的,你得到了TheBeet电脑里面加密后的东西和他加密程序的源代码。现在,好奇的你想知道TheBeet的秘密。
下面是加密程序的源代码:
#include <cstdio>#include <cctype>int main(){ char inp; int i = 0; while (scanf("%c", &inp) != EOF) { if ((inp >= 'A') && (inp <= 'Z')) { inp = ((inp - 'A') + i) % 26 + 'A'; } else if ((inp >= 'a') && (inp <= 'z')) { inp = ((inp - 'a') + i) % 26 + 'a'; } ++i; printf("%c", inp); } return 0;}
输入一段文字,表示加密后的内容。
输出加密前的内容,注意请不要遗漏任何字符和输出多余的字符。
Fmghxntn csxq rduj gio yjtr ob rktwai as nel. Wvj gs sgdpqe jn 4 lsphj lciyb H gkuwy zif jah? Y kmcgh pdmfoeiw, drftpym, ff nca zdavvljzr Hqkysmvdk Utgkqp, 4 ahewy ipy, sfdc lay ilkdnu L xgd hyf faxbv, un vmt xgui chttsys cjj gy odb blbuvvtut jxo gigdvv sjqo gebf ffir, gtfu ixv liap qtntgw lrve csuawcw gg tkrp rpub hnlmt, U ycun, C gkcv ujdx O ejc myftquq xmqki oo bsz. Bqoy, oujvj mzrbpzl orrynz' ymerfkqkahh wkb psalrl, gxec tfpsv thy vmtr ylwiut, izge pjkamoya rn mkii gul izge pigakuoell fpt jzzbzn hqes qcd monllflz lquxlaboo bb cp fyhkow. Zqx bkym dsq uaqdgkipo ymd uxrse orbw jvdc A ugsxwr ether vn dz fvphv mbz ocrt qi re trpp jwix. Tfvo, zcuwdpqe gxe irft wsk wavmmd ob boslnce qftqdk uiz G hbf rt plnk mocjj zhq pl arjfji zoic rgyt rvlpyzj wnu cqh sl. Cz V hsywfyy kmshjpj gaa cy inwi, lh rwfr fpt es hxybzbewpjv hjkkortnjvb. Zptu yaj -- lay wophvbn sk nzjnfmgwdd, B maxjhzf L fs adms nb yuahn peys pph xnvcun oespjv mbz lnoosvxrnzf jxo fsxpv bn ekqsebf sk qcbd inwiyey.
Fleeting time does not blur my memory of you. Can it really be 4 years since I first saw you? I still remember, vividly, on the beautiful Zhangzhou Campus, 4 years ago, from the moment I saw you smile, as you were walking out of the classroom and turned your head back, with the soft sunset glow shining on your rosy cheek, I knew, I knew that I was already drunk on you. Then, after several months' observation and prying, your grace and your wisdom, your attitude to life and your aspiration for future were all strongly impressed on my memory. You were the glamorous and sunny girl whom I always dream of to share the rest of my life with. Alas, actually you were far beyond my wildest dreams and I had no idea about how to bridge that gulf between you and me. So I schemed nothing but to wait, to wait for an appropriate opportunity. Till now -- the arrival of graduation, I realize I am such an idiot that one should create the opportunity and seize it instead of just waiting.
Sample output is a part of POJ2482's Description, slight changes.
#include<stdio.h>int main(){ char inp; int i = 0; while (scanf("%c", &inp) != EOF) { if ((inp >= 'A') && (inp <= 'Z')) inp =(((inp-'A')-i)%26+26)%26 + 'A'; else if ((inp >= 'a') && (inp <= 'z')) inp = (((inp-'a')-i)%26+26)%26+ 'a'; printf("%c", inp);i++; } return 0;}
- xmu 1012
- xmu 1024
- XMU 1255
- xmu 1325
- xmu 1326
- xmu 1228
- xmu 1004
- xmu 1005
- xmu 1006
- xmu 1007
- xmu 1008
- xmu 1009
- xmu 1010
- xmu 1011
- xmu 1015
- xmu 1017
- xmu acm 1029
- xmu acm 1055
- OCP 1Z0 053 190
- 简单文件操作 linux
- WINCE BSP中source文件中的宏定义
- KMP算法之总结篇(转)
- 线程池的研究及实现
- xmu 1012
- 杂
- java反射---getDeclaredFields()与getFields()的区别
- [Dos] 检查文件是否存在并进行压缩,以及过期删除
- iOS 各种bug集锦 以及解决方案 ----(自用)-----》陆续添加
- poj1753(dfs暴力枚举)
- POJ1039-Pipe
- SVN服务器搭建和使用(三)
- 【散文】 漫步在春天