Matcom Online Grader
Faculty of Mathematics and Computer Science of University of Havana
ℹ️ We've recently migrated MOG to a new server with a different grader. As a result, some features—especially those related to submission evaluation—might not work correctly. If you encounter any issues, please report them by clicking the exclamation icon in the bottom right corner of the website.
Are you sure you want to participate in this contest ?
If you select a team then virtual participation for other team members will be disabled. So, pick one if and only if your teammates are ready to compete with you.
Calcule el perímetro mínimo de un rectángulo de área $A$.
Input
Línea #1: Un entero $A$ representando el área del rectángulo - $(1 \leq A \leq 10^6)$.
Output
Línea #2: $P$, el valor del perímetro mínimo de un rectángulo de área $A$. $P$ no debe diferir en valor absoluto en más de $10^{-5}$ de la respuesta correcta.