https://www.acwing.com/problem/content/1998/
# include<iostream>
# include<cstring>
# include<algorithm>
using namespace std;
const int N=50010;
string minn[N],maxx[N];
string minc[N],maxc[N];
int main()
{
ios::sync_with_stdio(false);
cin.tie(nullptr);
return 0;
}
----------