Skip to content

Commit d8adc42

Browse files
committed
pangram
1 parent ce2e8db commit d8adc42

File tree

1 file changed

+43
-0
lines changed

1 file changed

+43
-0
lines changed

Free/G_pangram.cpp

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
#include <bits/stdc++.h>
2+
#define all(x) x.begin(),x.end()
3+
#define msg(str,str2) cout << str << str2<< endl
4+
using namespace std;
5+
6+
using ll = long long;
7+
using ld = long double;
8+
using uint = unsigned int;
9+
using ull = unsigned long long;
10+
template<typename T>
11+
using pair2 = pair<T, T>;
12+
using pii = pair<int, int>;
13+
using pli = pair<ll, int>;
14+
using pll = pair<ll, ll>;
15+
16+
#define pb push_back
17+
#define mp make_pair
18+
19+
int gcd(int a,int b){
20+
if(a%b==0) return b;
21+
else return gcd(b,a%b);
22+
}
23+
24+
clock_t startTime;
25+
double getCurrentTime() {
26+
return (double)(clock() - startTime) / CLOCKS_PER_SEC;
27+
}
28+
void solve(){
29+
int n; cin>>n;
30+
string s; cin>>s;
31+
map<char,int> map;
32+
for(int e = 0 ; e < n; e++){
33+
map[tolower(s[e])]++;
34+
}
35+
if(map.size()==26)cout << "YES\n";
36+
else cout << "NO\n";
37+
}
38+
int main(){
39+
ios_base::sync_with_stdio(false);
40+
cin.tie(0);
41+
solve();
42+
return 0;
43+
}

0 commit comments

Comments
 (0)