HF RL Explorer

Implement a command-line tool at /app/calc.py that acts as a fixed-point arithmetic calculator. The tool…

Implement a command-line tool at /app/calc.py that acts as a fixed-point arithmetic calculator. The tool…: a task in TermGrade Environments: 1,004 executable Linux tasks (Harbor dataset). Input format: A single line containing an arithmetic expression. The expression consists of numbers and…

The task

**Input format:** A single line containing an arithmetic expression. The expression consists of numbers and operators separated by spaces. Valid operators are `+`, `-`, `*`, `/`. Numbers are decimal strings with an optional leading minus sign and exactly one decimal point. The decimal portion may be empty (e.g.,…

Part of ai-and/termgrade-environments.