Caso # | Resultado | Tiempo | Memoria |
---|---|---|---|
#1 |
Correcto
|
0.096 s | 13 KBi |
#2 |
Correcto
|
0.091 s | 13 KBi |
#3 |
Correcto
|
0.099 s | 13 KBi |
#4 |
Correcto
|
0.099 s | 18 KBi |
#5 |
Correcto
|
0.095 s | 16 KBi |
#6 |
Correcto
|
0.09 s | 13 KBi |
#7 |
Error en tiempo de ejecución (NZEC)
Exited with error status 137 run.sh: line 1: 3 Killed /usr/local/openjdk13/bin/java Main |
0.339 s | 125 KBi |
#8 |
Error en tiempo de ejecución (NZEC)
Exited with error status 137 run.sh: line 1: 3 Killed /usr/local/openjdk13/bin/java Main |
0.327 s | 125 KBi |
#9 |
Error en tiempo de ejecución (NZEC)
Exited with error status 137 run.sh: line 1: 3 Killed /usr/local/openjdk13/bin/java Main |
0.285 s | 125 KBi |
#10 |
Error en tiempo de ejecución (NZEC)
Exited with error status 137 run.sh: line 1: 3 Killed /usr/local/openjdk13/bin/java Main |
0.292 s | 125 KBi |
#11 |
Error en tiempo de ejecución (NZEC)
Exited with error status 137 run.sh: line 1: 3 Killed /usr/local/openjdk13/bin/java Main |
0.305 s | 125 KBi |
#12 |
Error en tiempo de ejecución (NZEC)
Exited with error status 137 run.sh: line 1: 3 Killed /usr/local/openjdk13/bin/java Main |
0.286 s | 125 KBi |
#13 |
Error en tiempo de ejecución (NZEC)
Exited with error status 137 run.sh: line 1: 3 Killed /usr/local/openjdk13/bin/java Main |
0.324 s | 125 KBi |
#14 |
Error en tiempo de ejecución (NZEC)
Exited with error status 137 run.sh: line 1: 3 Killed /usr/local/openjdk13/bin/java Main |
0.314 s | 125 KBi |
#15 |
Error en tiempo de ejecución (NZEC)
Exited with error status 137 run.sh: line 1: 3 Killed /usr/local/openjdk13/bin/java Main |
0.293 s | 125 KBi |
#16 |
Error en tiempo de ejecución (NZEC)
Exited with error status 137 run.sh: line 1: 3 Killed /usr/local/openjdk13/bin/java Main |
0.281 s | 125 KBi |
#17 |
Error en tiempo de ejecución (NZEC)
Exited with error status 137 run.sh: line 1: 3 Killed /usr/local/openjdk13/bin/java Main |
0.286 s | 125 KBi |
#18 |
Error en tiempo de ejecución (NZEC)
Exited with error status 137 run.sh: line 1: 3 Killed /usr/local/openjdk13/bin/java Main |
0.3 s | 125 KBi |
#19 |
Error en tiempo de ejecución (NZEC)
Exited with error status 137 run.sh: line 1: 3 Killed /usr/local/openjdk13/bin/java Main |
0.294 s | 125 KBi |
#20 |
Error en tiempo de ejecución (NZEC)
Exited with error status 137 run.sh: line 1: 3 Killed /usr/local/openjdk13/bin/java Main |
0.281 s | 125 KBi |
#21 |
Error en tiempo de ejecución (NZEC)
Exited with error status 137 run.sh: line 1: 3 Killed /usr/local/openjdk13/bin/java Main |
0.299 s | 125 KBi |
#22 |
Error en tiempo de ejecución (NZEC)
Exited with error status 137 run.sh: line 1: 3 Killed /usr/local/openjdk13/bin/java Main |
0.262 s | 125 KBi |
// Versión de OpenJDK: 13 import java.util.Scanner; public class Main{ public static void main(String[] args) { Scanner scanner = new Scanner(System.in); String s = scanner.nextLine(); int n = s.length(); // Inicializar el máximo borde a 0 int maxBorde = 0; // Comprobar todos los posibles bordes for (int i = 1; i < n; i++) { String posibleBorde = s.substring(0, i); String posibleFinal = s.substring(n - i, n); if (posibleBorde.equals(posibleFinal)) { maxBorde = i; } } System.out.println(maxBorde); } }