My issue
My code
#include <iostream>
// #define int long long
using namespace std;
int main() {
ios_base::sync_with_stdio(false);
cin.tie(NULL);
int t;
cin>>t;
while(t--)
{
int n;
cin>>n;
string s1;
string s2;
cin>>s1;
cin>>s2;
int count=0;
for(int i=0;i<n;i++)
{
for(int j=0;j<n;j++)
{
if(s1[i]<s2[j])
{
count++;
break;
}
else
{
continue;
}
}
}
cout <<count<<endl;
}
return 0;
}
Problem Link: STRCOMPARE Problem - CodeChef