Advertisement
MohamedAbdel3al

A. Pangram

Sep 30th, 2021
79
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.98 KB | None | 0 0
  1. #include <bits/stdc++.h>
  2.  
  3. using namespace std ;
  4. #define sz(s) int(s.size())
  5. #define all(s) s.begin() , s.end()
  6. #define imin INT_MIN
  7. #define imax INT_MAX
  8. #define ll long long
  9. #define ull unsigned long long
  10. #define Time cerr << "Time Taken: " << (float)clock() / CLOCKS_PER_SEC << " Secs" << "\n";
  11. #define cin(v) for (auto& i : v) cin >> i ;
  12. #define pb(x) push_back(x)
  13. #define getline(s) getline(cin >> ws, s)
  14. #define Mod 1'000'000'007
  15. #define INF 2'000'000'000
  16. #define Num_of_Digits(n) ((int)log10(n)+1)
  17.  
  18. void ABDEL3AL () {
  19. ios_base::sync_with_stdio(false); cin.tie(nullptr) , cout.tie(nullptr) ;
  20. #ifndef ONLINE_JUDGE
  21. freopen("input.txt" , "r" , stdin) , freopen("output.txt" , "w" , stdout) ;
  22. #endif
  23. Time
  24. }
  25.  
  26.  
  27. int main() {
  28. ABDEL3AL() ;
  29. int n ; cin >> n ;
  30. vector <string> v(n) ;
  31. cin(v) ;
  32. transform(all(v), v.begin() , :: tolower) ;
  33. set <string> st(v.begin() , v.end()) ;
  34. cout << (sz(st) == 26 ? "YES" : "NO") ;
  35. return 0;
  36. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement