Caso # | Resultado | Tiempo | Memoria |
---|---|---|---|
#1 |
Error de compilación
Main.java:40: error: cannot find symbol public static Scanner leer = new Scanner(System.in); ^ symbol: class Scanner location: class Main Main.java:40: error: cannot find symbol public static Scanner leer = new Scanner(System.in); ^ symbol: class Scanner location: class Main 2 errors |
||
#2 |
Error de compilación
Main.java:40: error: cannot find symbol public static Scanner leer = new Scanner(System.in); ^ symbol: class Scanner location: class Main Main.java:40: error: cannot find symbol public static Scanner leer = new Scanner(System.in); ^ symbol: class Scanner location: class Main 2 errors |
||
#3 |
Error de compilación
Main.java:40: error: cannot find symbol public static Scanner leer = new Scanner(System.in); ^ symbol: class Scanner location: class Main Main.java:40: error: cannot find symbol public static Scanner leer = new Scanner(System.in); ^ symbol: class Scanner location: class Main 2 errors |
||
#4 |
Error de compilación
Main.java:40: error: cannot find symbol public static Scanner leer = new Scanner(System.in); ^ symbol: class Scanner location: class Main Main.java:40: error: cannot find symbol public static Scanner leer = new Scanner(System.in); ^ symbol: class Scanner location: class Main 2 errors |
||
#5 |
Error de compilación
Main.java:40: error: cannot find symbol public static Scanner leer = new Scanner(System.in); ^ symbol: class Scanner location: class Main Main.java:40: error: cannot find symbol public static Scanner leer = new Scanner(System.in); ^ symbol: class Scanner location: class Main 2 errors |
||
#6 |
Error de compilación
Main.java:40: error: cannot find symbol public static Scanner leer = new Scanner(System.in); ^ symbol: class Scanner location: class Main Main.java:40: error: cannot find symbol public static Scanner leer = new Scanner(System.in); ^ symbol: class Scanner location: class Main 2 errors |
||
#7 |
Error de compilación
Main.java:40: error: cannot find symbol public static Scanner leer = new Scanner(System.in); ^ symbol: class Scanner location: class Main Main.java:40: error: cannot find symbol public static Scanner leer = new Scanner(System.in); ^ symbol: class Scanner location: class Main 2 errors |
||
#8 |
Error de compilación
Main.java:40: error: cannot find symbol public static Scanner leer = new Scanner(System.in); ^ symbol: class Scanner location: class Main Main.java:40: error: cannot find symbol public static Scanner leer = new Scanner(System.in); ^ symbol: class Scanner location: class Main 2 errors |
||
#9 |
Error de compilación
Main.java:40: error: cannot find symbol public static Scanner leer = new Scanner(System.in); ^ symbol: class Scanner location: class Main Main.java:40: error: cannot find symbol public static Scanner leer = new Scanner(System.in); ^ symbol: class Scanner location: class Main 2 errors |
||
#10 |
Error de compilación
Main.java:40: error: cannot find symbol public static Scanner leer = new Scanner(System.in); ^ symbol: class Scanner location: class Main Main.java:40: error: cannot find symbol public static Scanner leer = new Scanner(System.in); ^ symbol: class Scanner location: class Main 2 errors |
||
#11 |
Error de compilación
Main.java:40: error: cannot find symbol public static Scanner leer = new Scanner(System.in); ^ symbol: class Scanner location: class Main Main.java:40: error: cannot find symbol public static Scanner leer = new Scanner(System.in); ^ symbol: class Scanner location: class Main 2 errors |
||
#12 |
Error de compilación
Main.java:40: error: cannot find symbol public static Scanner leer = new Scanner(System.in); ^ symbol: class Scanner location: class Main Main.java:40: error: cannot find symbol public static Scanner leer = new Scanner(System.in); ^ symbol: class Scanner location: class Main 2 errors |
||
#13 |
Error de compilación
Main.java:40: error: cannot find symbol public static Scanner leer = new Scanner(System.in); ^ symbol: class Scanner location: class Main Main.java:40: error: cannot find symbol public static Scanner leer = new Scanner(System.in); ^ symbol: class Scanner location: class Main 2 errors |
||
#14 |
Error de compilación
Main.java:40: error: cannot find symbol public static Scanner leer = new Scanner(System.in); ^ symbol: class Scanner location: class Main Main.java:40: error: cannot find symbol public static Scanner leer = new Scanner(System.in); ^ symbol: class Scanner location: class Main 2 errors |
||
#15 |
Error de compilación
Main.java:40: error: cannot find symbol public static Scanner leer = new Scanner(System.in); ^ symbol: class Scanner location: class Main Main.java:40: error: cannot find symbol public static Scanner leer = new Scanner(System.in); ^ symbol: class Scanner location: class Main 2 errors |
||
#16 |
Error de compilación
Main.java:40: error: cannot find symbol public static Scanner leer = new Scanner(System.in); ^ symbol: class Scanner location: class Main Main.java:40: error: cannot find symbol public static Scanner leer = new Scanner(System.in); ^ symbol: class Scanner location: class Main 2 errors |
||
#17 |
Error de compilación
Main.java:40: error: cannot find symbol public static Scanner leer = new Scanner(System.in); ^ symbol: class Scanner location: class Main Main.java:40: error: cannot find symbol public static Scanner leer = new Scanner(System.in); ^ symbol: class Scanner location: class Main 2 errors |
||
#18 |
Error de compilación
Main.java:40: error: cannot find symbol public static Scanner leer = new Scanner(System.in); ^ symbol: class Scanner location: class Main Main.java:40: error: cannot find symbol public static Scanner leer = new Scanner(System.in); ^ symbol: class Scanner location: class Main 2 errors |
||
#19 |
Error de compilación
Main.java:40: error: cannot find symbol public static Scanner leer = new Scanner(System.in); ^ symbol: class Scanner location: class Main Main.java:40: error: cannot find symbol public static Scanner leer = new Scanner(System.in); ^ symbol: class Scanner location: class Main 2 errors |
||
#20 |
Error de compilación
Main.java:40: error: cannot find symbol public static Scanner leer = new Scanner(System.in); ^ symbol: class Scanner location: class Main Main.java:40: error: cannot find symbol public static Scanner leer = new Scanner(System.in); ^ symbol: class Scanner location: class Main 2 errors |
||
#21 |
Error de compilación
Main.java:40: error: cannot find symbol public static Scanner leer = new Scanner(System.in); ^ symbol: class Scanner location: class Main Main.java:40: error: cannot find symbol public static Scanner leer = new Scanner(System.in); ^ symbol: class Scanner location: class Main 2 errors |
||
#22 |
Error de compilación
Main.java:40: error: cannot find symbol public static Scanner leer = new Scanner(System.in); ^ symbol: class Scanner location: class Main Main.java:40: error: cannot find symbol public static Scanner leer = new Scanner(System.in); ^ symbol: class Scanner location: class Main 2 errors |
public class Main { public static void main(String[] args) { //input dimensiones String cadena = leer.nextLine().trim(); int count = 0; int i = 0; int k = 1; boolean continuar = true; String borde = ""; boolean finalizar = false; while (k < cadena.length()-1 && !finalizar) { i=0; continuar=true; while (i < cadena.length() - k && continuar) { if (cadena.charAt(i) == cadena.charAt(i + k)) { count++; borde += cadena.charAt(i); } else { continuar = false; count=0; borde=""; } i++; } if (continuar) { finalizar = true; } k++; } System.out.println(count); System.out.println(borde); } public static Scanner leer = new Scanner(System.in); }