█████████ ████ ███░░░░░███ ░░███ ███ ░░░ ██████ ███████ ██████ ██████ ░███ ███░░███ ███░░███ ███░░███ ███░░███ ░███ ░███ ░███░███ ░███ ░███████ ░███ ░███ ░░███ ███░███ ░███░███ ░███ ░███░░░ ░███ ░███ ░░█████████ ░░██████ ░░████████░░██████ ░░██████ ░░░░░░░░░ ░░░░░░ ░░░░░░░░ ░░░░░░ ░░░░░░

Envío 4919

Problema 0x60 - ¿Mayor, menor o igual?

  • Autor: Jhefer
  • Fecha: 2021-09-15 03:32:33 UTC (Hace más de 2 años)
Caso # Resultado Tiempo Memoria
#1
Error en tiempo de ejecución (NZEC)
Exited with error status 1
/box/script.js:1
let numeros = prompt();
              ^

ReferenceError: prompt is not defined
    at Object.<anonymous> (/box/script.js:1:15)
    at Module._compile (internal/modules/cjs/loader.js:959:30)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:995:10)
    at Module.load (internal/modules/cjs/loader.js:815:32)
    at Function.Module._load (internal/modules/cjs/loader.js:727:14)
    at Function.Module.runMain (internal/modules/cjs/loader.js:1047:10)
    at internal/main/run_main_module.js:17:11
0.092 s 7 KBi
#2
Error en tiempo de ejecución (NZEC)
Exited with error status 1
/box/script.js:1
let numeros = prompt();
              ^

ReferenceError: prompt is not defined
    at Object.<anonymous> (/box/script.js:1:15)
    at Module._compile (internal/modules/cjs/loader.js:959:30)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:995:10)
    at Module.load (internal/modules/cjs/loader.js:815:32)
    at Function.Module._load (internal/modules/cjs/loader.js:727:14)
    at Function.Module.runMain (internal/modules/cjs/loader.js:1047:10)
    at internal/main/run_main_module.js:17:11
0.099 s 6 KBi
#3
Error en tiempo de ejecución (NZEC)
Exited with error status 1
/box/script.js:1
let numeros = prompt();
              ^

ReferenceError: prompt is not defined
    at Object.<anonymous> (/box/script.js:1:15)
    at Module._compile (internal/modules/cjs/loader.js:959:30)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:995:10)
    at Module.load (internal/modules/cjs/loader.js:815:32)
    at Function.Module._load (internal/modules/cjs/loader.js:727:14)
    at Function.Module.runMain (internal/modules/cjs/loader.js:1047:10)
    at internal/main/run_main_module.js:17:11
0.139 s 11 KBi
#4
Error en tiempo de ejecución (NZEC)
Exited with error status 1
/box/script.js:1
let numeros = prompt();
              ^

ReferenceError: prompt is not defined
    at Object.<anonymous> (/box/script.js:1:15)
    at Module._compile (internal/modules/cjs/loader.js:959:30)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:995:10)
    at Module.load (internal/modules/cjs/loader.js:815:32)
    at Function.Module._load (internal/modules/cjs/loader.js:727:14)
    at Function.Module.runMain (internal/modules/cjs/loader.js:1047:10)
    at internal/main/run_main_module.js:17:11
0.078 s 32 KBi
#5
Error en tiempo de ejecución (NZEC)
Exited with error status 1
/box/script.js:1
let numeros = prompt();
              ^

ReferenceError: prompt is not defined
    at Object.<anonymous> (/box/script.js:1:15)
    at Module._compile (internal/modules/cjs/loader.js:959:30)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:995:10)
    at Module.load (internal/modules/cjs/loader.js:815:32)
    at Function.Module._load (internal/modules/cjs/loader.js:727:14)
    at Function.Module.runMain (internal/modules/cjs/loader.js:1047:10)
    at internal/main/run_main_module.js:17:11
0.07 s 27 KBi
#6
Error en tiempo de ejecución (NZEC)
Exited with error status 1
/box/script.js:1
let numeros = prompt();
              ^

ReferenceError: prompt is not defined
    at Object.<anonymous> (/box/script.js:1:15)
    at Module._compile (internal/modules/cjs/loader.js:959:30)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:995:10)
    at Module.load (internal/modules/cjs/loader.js:815:32)
    at Function.Module._load (internal/modules/cjs/loader.js:727:14)
    at Function.Module.runMain (internal/modules/cjs/loader.js:1047:10)
    at internal/main/run_main_module.js:17:11
0.129 s 20 KBi
#7
Error en tiempo de ejecución (NZEC)
Exited with error status 1
/box/script.js:1
let numeros = prompt();
              ^

ReferenceError: prompt is not defined
    at Object.<anonymous> (/box/script.js:1:15)
    at Module._compile (internal/modules/cjs/loader.js:959:30)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:995:10)
    at Module.load (internal/modules/cjs/loader.js:815:32)
    at Function.Module._load (internal/modules/cjs/loader.js:727:14)
    at Function.Module.runMain (internal/modules/cjs/loader.js:1047:10)
    at internal/main/run_main_module.js:17:11
0.044 s 6 KBi
#8
Error en tiempo de ejecución (NZEC)
Exited with error status 1
/box/script.js:1
let numeros = prompt();
              ^

ReferenceError: prompt is not defined
    at Object.<anonymous> (/box/script.js:1:15)
    at Module._compile (internal/modules/cjs/loader.js:959:30)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:995:10)
    at Module.load (internal/modules/cjs/loader.js:815:32)
    at Function.Module._load (internal/modules/cjs/loader.js:727:14)
    at Function.Module.runMain (internal/modules/cjs/loader.js:1047:10)
    at internal/main/run_main_module.js:17:11
0.051 s 20 KBi
#9
Error en tiempo de ejecución (NZEC)
Exited with error status 1
/box/script.js:1
let numeros = prompt();
              ^

ReferenceError: prompt is not defined
    at Object.<anonymous> (/box/script.js:1:15)
    at Module._compile (internal/modules/cjs/loader.js:959:30)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:995:10)
    at Module.load (internal/modules/cjs/loader.js:815:32)
    at Function.Module._load (internal/modules/cjs/loader.js:727:14)
    at Function.Module.runMain (internal/modules/cjs/loader.js:1047:10)
    at internal/main/run_main_module.js:17:11
0.033 s 7 KBi
#10
Error en tiempo de ejecución (NZEC)
Exited with error status 1
/box/script.js:1
let numeros = prompt();
              ^

ReferenceError: prompt is not defined
    at Object.<anonymous> (/box/script.js:1:15)
    at Module._compile (internal/modules/cjs/loader.js:959:30)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:995:10)
    at Module.load (internal/modules/cjs/loader.js:815:32)
    at Function.Module._load (internal/modules/cjs/loader.js:727:14)
    at Function.Module.runMain (internal/modules/cjs/loader.js:1047:10)
    at internal/main/run_main_module.js:17:11
0.061 s 12 KBi
Puntos totales: 0 / 100

Código

let numeros = prompt();
numeros = numeros.split()
const a = parseInt(numeros[0],10)
const b = parseInt(numeros[1],10)
if(a>b){
 console.log(">")
}else if(a<b){
 console.log("<")
}else{
  console.log("=")
}