fork download
  1. #include <iostream>
  2. #include <cstring>
  3. using namespace std;
  4.  
  5. int main() {
  6. char c[200];
  7. cin.getline(c, 200);
  8. int count = 0;
  9. for (char i = 'a'; i <= 'z'; i++) {
  10. for (int j = 0; j < strlen(c); j++) {
  11. if (c[j] == i || (c[j] == (i -= 32))) {
  12. count++;
  13. break;
  14. }
  15. }
  16. }
  17. if (count == 26) {
  18. cout << "YES";
  19. }
  20. else {
  21. cout << "NO";
  22. }
  23. return 0;
  24. }
Success #stdin #stdout 0.01s 5432KB
stdin
qwertyuiopasdfghjklzxcvbnm
stdout
NO