0
已解决
王文博
资深守护
资深守护
望大神指教!
错误代码:
#include <bits/stdc++.h>
using namespace std;
int main()
{
int n;
string a,b;
for(int i=1;i<=n;i++)
{
cin>>a>>b;
if(a==b) cout<<"P"<<endl;
else if(a<b)
{
if(b[0]=='T') cout<<"Q"<<endl;
else cout<<"T\n";
}
else
{
if(a[0]=='T') cout<<"T\n";
else cout<<"Q\n";
}
}
}