博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
2012年"浪潮杯"山东省第三届ACM大学生程序设计竞赛--n a^o7 ! 分类: ...
阅读量:4659 次
发布时间:2019-06-09

本文共 2613 字,大约阅读时间需要 8 分钟。

n a^o7 !

Time Limit: 1000ms   Memory limit: 65536K  有疑问?点这里^_^

题目描述

 

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)

示例输入

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

示例输出

Case 1: i need u i love u and i miss uCase 2: loveandmisu一道水题,模拟
#include 
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
#define INF 0x3f3f3f3f#define ClearAll(A,T) memset(A,T,sizeof(a))using namespace std;const int Max=110;char str[Max];int main(){ int T,w=1; scanf("%d",&T); getchar(); while(T--) { gets(str); int len=strlen(str); for(int i=0; i
=0;i--) { printf("%c",str[i]); } printf("\n"); } return 0;}

版权声明:本文为博主原创文章,未经博主允许不得转载。

转载于:https://www.cnblogs.com/juechen/p/4722049.html

你可能感兴趣的文章
Linux高级指令
查看>>
Apache error: 403 Forbidden You don't have permission to access
查看>>
为什么你总成为不了架构师?
查看>>
华为牛人的十年工作感悟
查看>>
在Linux下用netstat查看网络状态、端口状态
查看>>
《Java编程思想》之为什么需要内部类?
查看>>
Laplace Transform
查看>>
Android数据传递,使用广播BroadcastReceiver;
查看>>
RecyclerView.Adapter封装,最简单实用的BaseRecyclerViewAdapter;只需重写一个方法,设置数据链式调用;...
查看>>
win10下使用nodejs安装及webstorm创建express项目的指导
查看>>
树链剖分
查看>>
List对象排序通用方法
查看>>
jquery 核心
查看>>
什么是UML类图
查看>>
ORA-01830: 日期格式图片在转换整个输入字符串之前结束
查看>>
.NET Core 1.1 发布 文档下载资源汇总
查看>>
SignalR入门之基本介绍
查看>>
计算机网络之应用层初识
查看>>
MVC学习笔记(六)---遇到的小问题汇总
查看>>
sun.misc.BASE64Encoder找不到包,解决方法
查看>>