fix challenge solver output formatting to two decimals

This commit is contained in:
Tuan-Dat Tran
2026-03-21 12:48:36 +01:00
parent 9432ee1412
commit c2ca69f2eb

View File

@@ -18,7 +18,7 @@ def solve_prompt(prompt: str) -> str:
left = int(match.group(1))
right = int(match.group(2))
return str(math.sqrt(left) * right)
return f"{math.sqrt(left) * right:.2f}"
def main() -> None: