麻豆小视频在线观看_中文黄色一级片_久久久成人精品_成片免费观看视频大全_午夜精品久久久久久久99热浪潮_成人一区二区三区四区

首頁 > 學院 > 開發設計 > 正文

n a^o7 !

2019-11-08 02:51:34
字體:
來源:轉載
供稿:網友

THINK 剛看到 這么長的 英文題時 覺得挺難的, 后來 仔細看的時候 發現 這是 水題 !!!,其實就是 上下顛倒閱讀 字符串。。。。用了一堆的if else。 找到各自的對應關系就可以了。

PRoblem Description

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

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

Output the case number and the message. (As shown in the sample output)

Example Input

2 n 55!w ! pue n a^o7 ! n paau ! n5!wpuea^o7

Example Output

Case 1: i need u i love u and i miss u Case 2: loveandmisu

Hint

Author 2012年”浪潮杯”山東省第三屆ACM大學生程序設計競賽

題目大意: 1. 輸入的字符串只包括 n5!wpuea^o7! 以及空格; 2. 在閱讀時是 上下顛倒閱讀的。

#include<stdio.h>#include<string.h>int main() { int T; int d, i; char str[105]; int k; scanf("%d",&T); getchar(); k = 0; while(T --) { k ++; memset(str, 0, sizeof(str)); gets(str); d = strlen(str); for (i = 0;i <= d - 1;i ++) { if (str[i] == 'n') str[i] = 'u'; else if (str[i] == '5') str[i] = 's'; else if (str[i] == '!') str[i] = 'i'; else if (str[i] == 'w') str[i] = 'm'; else if (str[i] == 'p') str[i] = 'd'; else if (str[i] == 'u') str[i] = 'n'; else if (str[i] == 'e') str[i] = 'a'; else if (str[i] == '^') str[i] = 'v'; else if (str[i] == 'o') str[i] = 'o'; else if (str[i] == '7') str[i] = 'l'; else if (str[i] == 'a') str[i] = 'e'; } printf("Case %d: ",k); for (i = d - 1;i >= 0 ;i --) { printf("%c",str[i]); } printf("/n"); } return 0; }/***************************************************User name: team3Result: AcceptedTake time: 0msTake Memory: 104KBSubmit time: 2017-02-18 09:31:45****************************************************/
上一篇:PAT

下一篇:黑白棋游戲

發表評論 共有條評論
用戶名: 密碼:
驗證碼: 匿名發表
主站蜘蛛池模板: 久久精品亚洲精品国产欧美kt∨ | 国产精品免费视频观看 | 中文字幕在线观看成人 | 日本免费一区二区三区四区 | 黄色片视频免费观看 | 性盈盈盈影院 | 精品久久久久久综合日本 | 男女一边摸一边做羞羞视频免费 | 国产免费一级 | 色淫影院| 2017亚洲男人天堂 | 亚洲午夜久久久精品一区二区三区 | 91久久另类重口变态 | 欧美黄一区 | 久久综合艹 | av在线等| 九九热在线视频免费观看 | 亚洲视频成人 | 日韩黄色片免费看 | 欧美三级欧美成人高清www | 免费日本一区二区 | 视屏一区 | 久久久一区二区三区精品 | 91羞羞| 国产精品成人免费一区久久羞羞 | 久久影片| 香蕉成人在线视频 | 成人视屏在线观看 | 日本在线看 | 国产呦在线观看视频 | 欧美淫交| 久色一区| 国产精品999在线观看 | 欧美一级理论 | 青青草免费观看 | 亚洲性综合网 | 日本a在线观看 | 亚洲日本韩国在线观看 | 精品国产欧美一区二区 | 日韩毛片免费观看 | 9999免费视频 |