Stack Machine Executor
题目链接:
http://acm.hust.edu.cn/vjudge/problem/26628
Description
http://7xjob4.com1.z0.glb.clouddn.com/18113a5cf78f108997460e36f7079fc6Input
The input contains several instances. Each instance consists of two lines, the first line is the encryption key and the second line is the plaintext. Both key and plaintext consist of uppercase letters of the English alphabet {A, B, C, . . . , Z}. The length of the key will be between 1 and 1000, the length of the plaintext between 1 and 100 000, inclusive. Input is terminated by a line containing one zero.Output
For each input instance, output the ciphertext — the encrypted version of the message.Sample Input
ICPC THISISSECRETMESSAGE ACM CENTRALEUROPEPROGRAMMINGCONTEST LONGKEY CERC 0Sample Output
CKYVRVIHLUUWVHIVJJU DHAUUNMHHSRCFSEPJEBPZJQTDRAUHFU OTFJSource
2016-HUST-线下组队赛-1##题意: 用密钥来加密字符串.
##题解: 题目真是长,然而是签到题... 要练习一下快速读题了...不要看到长题面不敢读.. 直接模拟即可.
##代码: ``` cpp #include