TOPIC

Wrong Answer 5%

Giovane Pereira Simões asked 3 months ago

No meu PC roda perfeitamente, mas no site da erro.

var input = require("fs").readFileSync("stdin","utf-8"); var lines = input.split("\n");

var entrada = lines.shift().split(" ");

var A = parseFloat(entrada[0]); var B = parseFloat(entrada[1]); var C = parseFloat(entrada[2]);

const PI = 3.14159;

var triangulo = (A C)/2; var circulo = PI (C*2); var trapezio = (A + B) C; var quadrado = B*2; var retangulo = A B;

console.log("TRIANGULO: " + triangulo.toFixed(3)); console.log("CIRCULO: " + circulo.toFixed(3)); console.log("TRAPEZIO: " + trapezio.toFixed(3)); console.log("QUADRADO: " + quadrado.toFixed(3)); console.log("RETANGULO: " + retangulo.toFixed(3));

Remember not post solutions. Your post may be reviewed by our moderators.