Babelfish, babelfishpoj
Question Link
- For a simple string HASH question, learn about the elfhash character string of the black book.
const int MAXN = 100010;const int maxn=1000000;const int maxm=100003;const int maxlen=20;class hash{ private: struct node{ char ch[maxlen]; int ptr; node* next; }; node *h[maxm],s[maxn]; int numptr; int Hash(char *key) { unsigned long h=0,g; while(*key) { h=(h<<4)+*key++; g=h&0xf0000000L; if(g)h^=g>>24; h&=~g; } return h%maxm; } public: void init() { int i; for(i=0;i<maxm;i++)h[i]=NULL; numptr=0; } int ins(char ch[]) { int temp=Hash(ch); strcpy(s[numptr].ch,ch); s[numptr].next=h[temp]; s[numptr].ptr=numptr; h[temp]=&s[numptr]; numptr++; return numptr-1; } int question(char ch[]) { int temp=Hash(ch); node* ptr=h[temp]; while(ptr) { if(strcmp(ptr->ch,ch)==0) { return ptr->ptr; } ptr=ptr->next; } return -1; }} hash;char ipt[30], a[20], b[20];char ans[MAXN][20];int main (){ hash.init(); while (gets(ipt) && ipt[0] != 0) { sscanf(ipt, "%s %s", a, b); int hs = hash.ins(b); strcpy(ans[hs], a); } while (gets(ipt) && ipt[0] != 0) { int hs = hash.question(ipt); if (hs != -1) printf("%s\n", ans[hs]); else puts("eh"); } return 0;}/*dog ogdaycat atcaypig igpayfroot ootfrayloops oopslayatcayittenkayoopslaySample Outputcatehloops*/
What is bamboo English?
BabelFish Language Learning System is a Learning System that enables learners to learn and use a Language anytime, anywhere, easily and happily. This name is from Douglas Adams's series of Novels about the galaxy roaming guide. It is a fictional species that can help people understand any language:
The babay fish is small, yellow and looks like a putoy. It is probably the most strange thing in the universe. It makes a living by receiving the energy of brainwaves, not from its carriers, but from people around it. It absorbs all imperceptible mental frequencies from these brainwaves and converts them into nutrients. Then, he gives the idea of the carrier a kind of mental sensor matrix composed of the perceived mental frequency and the neural signals provided by the brain language hub. The actual effect of all these processes is that, if you put a babay into your ears, you can immediately understand what you say in any form of language, the decoding signal you hear is the brainwave matrix that baobaiyu provides to your thoughts.
Which online translation service is better?
GOOGLE and Yahoo are both average
You can see that Babel Fish Translation is babelfish. altavista.