HF RL Explorer

Create a command-line tool /app/calc that performs arithmetic operations on decimal numbers with fixed…

Create a command-line tool /app/calc that performs arithmetic operations on decimal numbers with fixed…: a task in TermGrade Environments: 1,004 executable Linux tasks (Harbor dataset). Input contract: - Read ONE line from stdin containing an arithmetic expression. - Expression format: <number…

The task

**Input contract:** - Read ONE line from stdin containing an arithmetic expression. - Expression format: `<number> <operator> <number>` - Numbers: decimal strings optionally starting with `+` or `-`, followed by integer part, optional decimal point, optional fractional part. Scientific notation is NOT supported. -…

Part of ai-and/termgrade-environments.