Thursday, March 17, 2011

10282 - Babelfish


#include<stdio.h>
#include<stdlib.h>
int main()
{
    char ch[100],key[100]={0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
            0,0,0,0,0,0,0,0,0,0,32,0,0,0,0,0,0,59,0,
            0,0,0,77,48,44,46,57,96,49,50,51,52,53,54,55,56,0,76,0,
            45,0,0,0,0,86,88,83,87,68,70,71,85,72,74,75,78,66,73,79,
            0,69,65,82,89,67,81,90,84,0,80,93,91,0,0,0,0,0};
    register int i;
    freopen("in.txt","r",stdin);
    while(gets(ch))
    {
        for(i=0;ch[i];i++)
            printf("%c",key[ch[i]]);
        printf("\n");
    }
    return 0;
}

No comments:

Post a Comment

Note: Only a member of this blog may post a comment.