Write a command-line tool /app/fixed.py that performs arbitrary-precision rational arithmetic using only…
Write a command-line tool /app/fixed.py that performs arbitrary-precision rational arithmetic using only…: a task in termgrade-bandcentral-gemma4-31b-bash: TermGrade Band-Central: the 151-task selection and its splits (Harbor dataset). Each fraction is given as NUM/DEN or just NUM (denominator…
The task
Each fraction is given as `NUM/DEN` or just `NUM` (denominator implied 1). NUM and DEN are signed decimal integers (possibly with leading zeros, possibly negative). DEN is never zero in input.