Ответы на вопрос:
#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";
}
Популярно: Информатика
-
алекей426.07.2022 09:06
-
НелиЗильбирштейн20.06.2022 10:00
-
Анастасия056119.06.2021 11:26
-
arsenboosss75714.12.2021 04:45
-
AndyXD26.09.2020 12:47
-
Jihye1112.06.2020 16:05
-
kosikoffpasha04.03.2020 14:28
-
SchoolWolf11.02.2021 04:38
-
karinabarakh25.08.2021 04:28
-
Angela96019.02.2023 20:10