大佬们求助,这种得1分是怎么搞的? 就AC了第一个测试样例。
#include <bits/stdc++.h>
using namespace std;
string S1[101] ={},S2[101]={};
int main(){
int n;
cin>>n;
for(int i=0;i<n;i++){
cin>>S1[i]>>S2[i];
}
for(int i=0;i<n;i++){
if(S1[i]>S2[i])
{
cout<<"Player2"<<endl;
}
if(S1[i]<S2[i])
{
cout<<"Player1"<<endl;
}
if(S1[i]==S2[i])
{
cout<<"Tie"<<endl;
}
}
return 0;
}