#include #include #include #include typedef unsigned long long ull; using namespace std; int n,i,j; char s[50]; int a[26]; mapmp; int main(){ scanf("%d",&n); for (i=1;i<=n;i++){ memset(a,0,sizeof a); scanf("%s",s); int m=strlen(s); for (j=0;j