Caso # | Resultado | Tiempo | Memoria |
---|---|---|---|
#1 |
Incorrecto
|
0.006 s | 72 KBi |
#2 |
Incorrecto
|
0.007 s | 1 KBi |
#3 |
Incorrecto
|
0.005 s | 1 KBi |
#4 |
Incorrecto
|
0.006 s | 1 KBi |
#5 |
Incorrecto
|
0.006 s | 2 KBi |
#6 |
Incorrecto
|
0.005 s | 2 KBi |
#7 |
Incorrecto
|
0.007 s | 10 KBi |
#8 |
Incorrecto
|
0.007 s | 1 KBi |
#9 |
Incorrecto
|
0.005 s | 2 KBi |
#10 |
Incorrecto
|
0.005 s | 1 KBi |
#11 |
Incorrecto
|
0.007 s | 1 KBi |
#12 |
Incorrecto
|
0.007 s | 2 KBi |
#include <bits/stdc++.h> using namespace std; int main() { string in; cin >> in; vector<int> reg(26); bool flag = false; for (int i = 0; i < in.length(); i++) { if (reg[in[i] - 'a']) { flag = true; break; } reg[in[i] - 'a']++; } return 0; }