代码
#include<bits/stdc++.h>
using namespace std;
int S[10001], Q[10001], l, sr, qr;
int main()
{
ios::sync_with_stdio(false);
cin.tie(0);
cout.tie(0);
cin >> l;
for(int i=0;i<l;i++)
{
cin >> S[i];
}
for(int i=0;i<l;i++)
{
cin >> Q[i];
}
for(int i=0;i<l;i++)
{
if(S[i] > Q[i])
{
sr++;
}
else if(S[i] < Q[i])
{
qr++;
}
}
printf("%d %d\n", sr, qr);
if(sr > qr)
{
cout << "S";
}
else if(sr == qr)
{
cout << "Tie";
}
else
{
cout << "Q";
}
return 0;
}
十个测试点全部运行错误,我真的锟斤拷锟斤拷锟斤拷锟斤拷锟斤拷锟斤拷锟斤拷锟斤拷锟斤拷锟斤拷锟斤拷锟斤拷锟斤拷锟斤拷锟斤拷锟斤拷锟斤拷锟斤拷锟斤拷锟斤拷锟斤拷锟斤拷锟斤拷锟斤拷锟斤拷锟斤拷锟斤拷锟斤拷锟斤拷锟斤拷锟斤拷锟斤拷锟斤拷锟斤拷锟斤拷锟斤拷锟斤拷锟斤拷锟斤拷锟斤拷锟斤拷锟斤拷锟斤拷锟斤拷锟斤拷锟斤拷锟斤拷锟斤拷锟斤拷锟斤拷锟斤拷锟斤拷锟斤拷锟斤拷锟斤拷锟斤拷锟斤拷锟斤拷锟斤拷锟斤拷锟斤拷