Caso # | Resultado | Tiempo | Memoria |
---|---|---|---|
#1 |
Incorrecto
|
0.003 s | 0 KBi |
#2 |
Incorrecto
|
0.007 s | 0 KBi |
#3 |
Incorrecto
|
0.002 s | 0 KBi |
#4 |
Incorrecto
|
0.004 s | 22 KBi |
#5 |
Incorrecto
|
0.005 s | 0 KBi |
#6 |
Incorrecto
|
0.004 s | 0 KBi |
#7 |
Incorrecto
|
0.004 s | 22 KBi |
#8 |
Incorrecto
|
0.004 s | 0 KBi |
#9 |
Incorrecto
|
0.006 s | 1 KBi |
#10 |
Incorrecto
|
0.003 s | 0 KBi |
#11 |
Incorrecto
|
0.003 s | 0 KBi |
#12 |
Incorrecto
|
0.003 s | 24 KBi |
#include<iostream> #define fast_io ios_base::sync_with_stdio(false); cin.tie(NULL); using namespace std; int abcs[26]; int main() { fast_io string s; cin>>s; for(int i = 0; i < s.size(); i++){ abcs[s[i] - 'a']++; if(abcs[s[i] - 'a'] > 1) { cout<<"no\n"; return 0; } } cout<<"yes\n"; }