fork(1) download
  1. #include <bits/stdc++.h>
  2. using namespace std;
  3. #define GG ios_base::sync_with_stdio(false); cin.tie(0); cout.tie(0);
  4. int main () { GG;
  5. int n,cnt[26]={0},c=0; string s;
  6. cin>>n>>s;
  7. for(int i=0;i<n;i++)
  8. { if(s[i]>='A'&& s[i]<='Z')
  9. s[i]+=('a'-'A');
  10. cnt[s[i]-'a']++;
  11. if(cnt[s[i]-'a']==1) c++;
  12. }
  13.  
  14. (c==26)? cout<<"YES\n" : cout<<"NO\n";
  15. return 0;}
Success #stdin #stdout 0.01s 5304KB
stdin
12
toosmallword
stdout
NO