各位,为什么全部TLE,明明在我电脑上没有问题的。。。。。。。。
查看原帖
各位,为什么全部TLE,明明在我电脑上没有问题的。。。。。。。。
116602
chuguoliang楼主2020/9/23 05:24

就是这个东西,鼓捣了半天了,全部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;
}
2020/9/23 05:24
加载中...