Caso # | Resultado | Tiempo | Memoria |
---|---|---|---|
#1 |
Correcto
|
0.005 s | 2 KBi |
#2 |
Correcto
|
0.006 s | 54 KBi |
#3 |
Correcto
|
0.005 s | 2 KBi |
#4 |
Correcto
|
0.006 s | 53 KBi |
#5 |
Correcto
|
0.008 s | 1 KBi |
#6 |
Correcto
|
0.005 s | 70 KBi |
#7 |
Correcto
|
0.008 s | 1 KBi |
#8 |
Correcto
|
0.006 s | 2 KBi |
#9 |
Correcto
|
0.009 s | 21 KBi |
#10 |
Correcto
|
0.005 s | 2 KBi |
#11 |
Correcto
|
0.007 s | 8 KBi |
#12 |
Correcto
|
0.003 s | 2 KBi |
#include <bits/stdc++.h> using namespace std; int main(){ char aa; set<char> used; bool f = true; while(cin >> aa and f){ if(used.count(aa)){f = false;} used.insert(aa); } cout << ((f) ? "no": "yes"); return 0; }