Problem A. Speaking in Tongues
简单的加密解密题,字母对应关系需要从题目和样例中得出。
#include <iostream>
#include <cstring>
#include <cstdio>
using namespace std;
char map[]="yhesocvxduiglbkrztnwjpfmaq";
char st[500],str[500];
int main()
{
int t,i,j;
// freopen("d:\\gcj\\a.in","r",stdin);
// freopen("d:\\gcj\\a.out","w",stdout);
scanf("%d",&t);
getchar();
for(i=1;i<=t;i++)
{
gets(st);
printf("Case #%d: ",i);
for(j=0;j<strlen(st);j++)
if(st[j]!=' ')
str[j]&