HDU 2140 Michael Scofield & amp; #39; s letter

Source: Internet
Author: User

HDU 2140 Michael Scofield & #39; s letter
Michael Scofield's letterTime Limit: 3000/1000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others)
Total Submission (s): 3442 Accepted Submission (s): 2014



Problem Description I believe keep people are the fans of prison break. How clever Michael is !! In order that the message won't be found by FBI easily, he usually send code letters to Sara by a paper crane. hence, the paper crane is Michael in the heart of Sara. now can you write a program to help Sara encode the letter from Michael easily?
The letter from Michael every time is a string of lowercase letters. You shoshould encode letters as the rules below:
B is '', q is ',', t is '! ', M is l, I is e, c is a, a is c, e is I, l is m. it is interesting. are you found that it is just change michael to leahcim?
Input The input will consist of several cases, one per line.
Each case is a letter from Michael, the letteres won 'texceed 10000.

Output For each case, output the encode letter one line.

Sample Input

pmicsibforgevibliqbscrctebmovibyout

Sample Output
please forgive me, sara!i love you!

Author Li Guangxia
Source HDU 2007-11 Programming Contest

Question: B is '', q is ',', t is '! ', M is l, I is e, c is a, a is c, e is I, l is m. direct violence.
#include 
 
  #include 
  
   #include 
   
    #include
    #include 
     
      #include 
      
       #include 
       
        #include
        
         #include 
         
          #include 
          
           #include using namespace std;#define inf 0x6f6f6f6f#define mod 10int main(){ char s[10005]; while(cin>>s) { int l=strlen(s); int i; for(i=0; i
           
          
         
        
       
      
     
   
  
 

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.