标签:des style color os strong io width for
| Time Limit: 1000MS | Memory Limit: 65536K | |
| Total Submissions: 11735 | Accepted: 6536 |
Description
yrwhsoujgcxqbativndfezmlpk
Input
Output
Sample Input
eydbkmiqugjxlvtzpnwohracsf Kifq oua zarxa suar bti yaagrj fa xtfgrj
Sample Output
Jump the fence when you seeing me coming
#include<iostream>
#include<stdio.h>
#include<cstring>
#include<map>
using namespace std;
int main()
{
map <char,char> record;
map<char, char >::iterator it;
char str1[26],str2[101];
int i;
for(i=0;i<26;i++)
{
cin>>str1[i];
record[i+'a']=str1[i];
}
getchar();
gets(str2);
int len;
len=strlen(str2);
for(i=0;i<len;i++)
{
if(str2[i]==' ')
{
cout<<" ";
continue;
}
else if(str2[i]>='A'&&str2[i]<='Z')
{
it=record.find(str2[i]+32);
cout<<char(it->second-32);
}
else
{
it=record.find(str2[i]);
cout<<it->second;
}
}
cout<<endl;
return 0;
}
POJ 2141 Message Decowding(map),布布扣,bubuko.com
POJ 2141 Message Decowding(map)
标签:des style color os strong io width for
原文地址:http://blog.csdn.net/sunshumin/article/details/38083623