HF RL Explorer

Goal : Create a command-line tool /app/fcalc (Python script) that performs safe fixed-point arithmetic…

Goal : Create a command-line tool /app/fcalc (Python script) that performs safe fixed-point arithmetic…: a task in TermGrade Environments: 1,004 executable Linux tasks (Harbor dataset). Input contract : - Read exactly one line from stdin. The line contains an expression with numbers and operators…

The task

**Input contract**: - Read exactly one line from stdin. The line contains an expression with numbers and operators separated by spaces. - Supported operators: `+` (addition), `-` (subtraction), `*` (multiplication), `^` (exponentiation where the exponent is a non-negative integer). - Numbers are decimal strings that…

Part of ai-and/termgrade-environments.