#include<bits/stdc++.h>
using namespace std;
int main()
{
int n;
cin >> n;
int res1 = 0 , res2 = 0;
int a[1001];
int b[1001];
for( int i = 0 ; i < n ; i ++ )
{
cin >> a[i];
}
for( int j = 0 ; j < n ; j ++ )
{
cin >> b[j];
}
for( int l = 0 ; l < n ; l ++ )
{
if( a[l] > b[l] )
{
res1 ++;
}
else if( a[l] < b[l] )
{
res2 ++;
}
}
if( res1 < res2 )
{
cout << res1 << ' ' << res2;
cout << endl;
cout << 'Q';
}
else if( res1 > res2 )
{
cout << res1 << ' ' << res2;
cout << endl;
cout << 'S';
}
else if( res1 == res2 )
{
cout << res1 << ' ' << res2;
cout << endl;
cout << "Tie" << endl;
}
return 0;
}
我错哪里了,请指出来一下,谢谢。
全部RE