Caso # | Resultado | Tiempo | Memoria |
---|---|---|---|
#1 |
Incorrecto
|
0.087 s | 13 KBi |
#2 |
Incorrecto
|
0.081 s | 13 KBi |
#3 |
Incorrecto
|
0.085 s | 10 KBi |
#4 |
Incorrecto
|
0.078 s | 13 KBi |
#5 |
Incorrecto
|
0.089 s | 10 KBi |
#6 |
Incorrecto
|
0.094 s | 14 KBi |
#7 |
Incorrecto
|
0.084 s | 10 KBi |
#8 |
Incorrecto
|
0.077 s | 13 KBi |
#9 |
Incorrecto
|
0.089 s | 10 KBi |
#10 |
Incorrecto
|
0.083 s | 13 KBi |
#11 |
Incorrecto
|
0.082 s | 14 KBi |
#12 |
Incorrecto
|
0.093 s | 14 KBi |
import java.io.BufferedReader; import java.io.InputStreamReader; import java.util.HashSet; import java.util.Set; public class Main { public static void main(String[] args) throws Throwable { BufferedReader in = new BufferedReader(new InputStreamReader(System.in)); Set<Character> chars; for(String ln; (ln = in.readLine())!=null; ){ chars = new HashSet<>(); int size = ln.length(); for(int i =0; i<size; i++) chars.add(ln.charAt(i)); System.out.println(size == chars.size()?"yes":"no"); } } }