Есть ответ 👍

Выдает пустую форму в Lazarus
исправить

249
275
Посмотреть ответы 1

Ответы на вопрос:

290720031
4,4(48 оценок)

#include <iostream>

#include <set>

using namespace std;

signed main() {

   ios_base::sync_with_stdio(0);

   cin.tie(0);

   cout.tie(0);

   string s;

   set<char> b;

   cin >> s;

   for(auto i: s)

       b.insert(i);

   if(b.size() == s.length())

       cout << "YES";

   else

       cout << "NO";

}

Популярно: Информатика