corregir ajedrez aceptarelreto

This commit is contained in:
PC de clase committed 2026-10-15 13:42:48 +02:00
1 parent 4070327d70
commit 58030ec54a
3 files changed
+39 -36

No files matched your search

+1 -2
View File
@@ -1,7 +1,7 @@
import java.util.Scanner;
public class P112_RadaresDeTramo {
public static void main() {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
int distancia = 0; // Distancia entre las cámaras (metros)
int velPermitida = 0; // Velocidad máxima permitida (Km/h)
@@ -19,7 +19,6 @@ public class P112_RadaresDeTramo {
}
// Salir del bucle
if (distancia == 0 && velPermitida == 0 && tiempo == 0) {
System.out.println("SALIR");
break;
}
// Calcular