here is a question from codechef...
and here is my code ....
int main()
{
int t;
si(t);
while(t--)
{
string A,B;
cin.ignore();
getline(cin,A);
cin>>B;
for(int i=0;i<A.size();i++)
{
if(A[i]==' ')
continue;
A[i]= B[(A[i]-'A')];
}
cout<<A<<"\n";
}
return 0;
}
why am i getting wrong answer afterall i am getting everything correct on my local compiler....