fork download
  1. #include<bits/stdc++.h>
  2. using namespace std;
  3. int fre[26];
  4. int main()
  5. {
  6. cin.tie(0);cout.tie(0);ios::sync_with_stdio(false);
  7.  
  8. int i,n,m,t,a[100006];
  9. string s;
  10. cin>>n;
  11. cin>>s;
  12. for(i=0;i<n;i++)
  13. s[i]=tolower(s[i]);
  14. for(i=0;i<n;i++)
  15. {
  16. fre[s[i]-'a']++;
  17. }
  18. for(i=0;i<26;i++)
  19. {
  20. if(fre[i]==0)
  21. {
  22. cout<<"NO";
  23. return 0;
  24. }
  25. }
  26. cout<<"YES";
  27. return 0 ;
  28. }
  29.  
Success #stdin #stdout 0.01s 5288KB
stdin
Standard input is empty
stdout
NO