HF RL Explorer

Create a command-line tool /root/fixed calc.py that performs precise fixed-point decimal arithmetic. The…

Create a command-line tool /root/fixed calc.py that performs precise fixed-point decimal arithmetic. The…: a task in TermGrade Environments: 1,004 executable Linux tasks (Harbor dataset). Input format: - One transaction per line: ACCOUNT ID DATE AMOUNT DESCRIPTION - ACCOUNT ID : non-empty…

The task

**Input format:** - One transaction per line: `ACCOUNT_ID|DATE|AMOUNT|DESCRIPTION` - `ACCOUNT_ID`: non-empty alphanumeric string (may contain underscores) - `DATE`: YYYY-MM-DD format (must be a valid Gregorian calendar date) - `AMOUNT`: decimal number with exactly 2 decimal places, may be negative, may have leading…

Part of ai-and/termgrade-environments.