Caso # | Resultado | Tiempo | Memoria |
---|---|---|---|
#1 |
Incorrecto
|
0.003 s | 3 KBi |
#2 |
Incorrecto
|
0.004 s | 0 KBi |
#3 |
Incorrecto
|
0.004 s | 0 KBi |
#4 |
Incorrecto
|
0.003 s | 0 KBi |
#5 |
Incorrecto
|
0.003 s | 1 KBi |
#6 |
Incorrecto
|
0.006 s | 4 KBi |
#7 |
Incorrecto
|
0.008 s | 3 KBi |
#8 |
Incorrecto
|
0.004 s | 0 KBi |
#9 |
Incorrecto
|
0.006 s | 2 KBi |
#10 |
Incorrecto
|
0.004 s | 1 KBi |
#11 |
Incorrecto
|
0.004 s | 1 KBi |
#12 |
Incorrecto
|
0.005 s | 0 KBi |
#include <bits/stdc++.h> #include <iostream> using namespace std; int main() { string s; cin >> s; set<char> diferent; for (int i = 0; i < s.length(); i++) { diferent.insert(s[i]); } if (diferent.size() == s.length()) { cout << "No" << endl; } else cout << "Yes" << endl; return 0; }