Implement a command-line tool /app/rangeq that accepts intervals and queries, then outputs results in a…
Implement a command-line tool /app/rangeq that accepts intervals and queries, then outputs results in a…: a task in termgrade-bandcentral-gemma4-31b-bash: TermGrade Band-Central: the 151-task selection and its splits (Harbor dataset). Input format (read from stdin): - Each line is either an…
The task
**Input format** (read from stdin): - Each line is either an **interval definition** or a **query**. - An interval definition has the format: `+ start end label` where start and end are integers (possibly negative), and label is a non-empty string without spaces. The interval is INCLUSIVE on start, EXCLUSIVE on end.…