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 Environments: 1,004 executable Linux tasks (Harbor dataset). Each fraction is given as NUM/DEN or just NUM (denominator implied 1). NUM and DEN are signed decimal integers…
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.
Part of ai-and/termgrade-environments.