Untitled

mail@pastecode.io avatar
unknown
plain_text
2 years ago
482 B
0
Indexable
#include <string>
#include <iostream>
#include<stdlib.h>
using namespace std;
int main()
{
	int n;
	cin >> n;
	string a;
	cin >> a;
	int s = 0;
	int i;
	for (i = 0; i < a.size(); i++)
	{
		a[i] = tolower(a[i]);
	}
	for (int i = 0; i < a.size(); i++)
	{
		for (int j = i + 1; j < a.size(); j++)
		{
			if (a[i] == a[j]) a[i] = ' ';
		}
	}
	for (int i = 0; i < a.size(); i++)
	{
		if (a[i] != ' ')s++;
	}
	if (26 == s) cout << "YES";
	else cout << "NO";
}