就是这个东西,鼓捣了半天了,全部TLE
#include<iostream>
#include<string>
using namespace std;
int main()
{
char a[3];
string x;
int z,w,e,t,b,c=0;
cin>>z>>w>>e;
cin>>x;
for(int i=0;i<=3;i++)
{
a[i]=x[i];
}
if(a[0]=='A')
t=z;
else
if(a[0]=='B')
b=z;
else
if(a[0]=='C')
c=z;
if(a[1]=='A')
t=w;
else
if(a[1]=='B')
b=w;
else
if(a[1]=='C')
c=w;
if(a[2]=='A')
t=e;
else
if(a[2]=='B')
b=e;
else
if(a[2]=='C')
c=e;
cout<<t<<" "<<b<<" "<<c;
return 0;
}