func_code_string: #include <bits/stdc++.h>   using namespace std;   int main() {     int n, i, x, m = 0;     char a[1000];     int s[26];     cin >> n;     while (n--) {       cin >> a;       m = 0;       int mi = 1000, mx = -1;       for (i = 0; i < 26; i++) {         s[i] = 0;       }       x = strlen(a);       for (i = 0; i < x; i++) {         s[a[i] -  a ]++;         mi = min(mi, (a[i] -  a ));         mx = max(mx, (a[i] -  a ));       }       for (i = 0; i < 26; i++) {         if (s[i] > 1) {           cout <<  No  << endl;           m = 1;           break;         }       }       for (i = mi; i <= mx; i++) {         if (s[i] != 1 && m != 1) {           cout <<  No  << endl;           m = 1;           break;         }       }       if (m == 0) cout <<  Yes  << endl;     }   }   