天天看點

sdut 2413:n a^o7 !(第三屆山東省省賽原題,水題,字元串處理)

all brave and intelligent fighters, next you will step into a

distinctive battleground which is full of sweet and happiness. if you want to

win the battle, you must do warm-up according to my instructions, which can make

you in the best state preparing to fight. now please relax yourself and enjoy

the good moment. before you raise your sharp sword to the enemy who guards the

battleground, please allow me to tell you a true and romantic story about a

samurai like you. 

samurai hh fell in love with girl ss, who is charming

and demure. he realized the truth that he must spend his remaining life with ss,

and resolved to pursue the hard-won affection. one day hh wrote a letter to ss,

when she opens the letter with excitement her mind was in tangle. she found

herself completely not to figure out the meaning about the letter, which said

that "n 55!w ! pue n a^o7 ! n paau !". ss also immersed herself in guessing the

meaning of that letter for a long time because of her adore to hh. finally she

called hh to ask the meaning of the letter. on the other side of the phone, hh

was too nervous to say. gradually he calmed down himself and told ss to reverse

the letter and read it. then on both ends of the phone comes the voice at the

same time "i need u i love u and i miss u".

ss wants to tell each of you

however you are brave and skilled, you shouldn‘t forget to express your loyal

love and romantic feelings to your prince or princess.

now the horn sounds

for battle,do it by the following input and output. i think each of you will get

an "accepted" in this battle with pleasant mood.

input contains an integer t in the first line, and then t lines

follow .each line contains a message (only contain ‘n5!wpuea^o7!‘ and 

‘(space)), the message‘s length is no more than 100.

output the case number and the message. (as shown in the sample

output)

 2012年"浪潮杯"山東省第三屆acm大學生程式設計競賽

  水題。

  因為隻會出現“n5!wpuea^o7!”這些字元,是以依次單獨處理即可。

  代碼:

freecode :