#K38732. Minimum Credits to Avoid Penalty

    ID: 26264 Type: Default 1000ms 256MiB

Minimum Credits to Avoid Penalty

Minimum Credits to Avoid Penalty

You are given a series of test cases. Each test case consists of two integers: the total available credits C and the minimum credits required M to avoid a penalty. Your task is to determine the minimum credits that must be allocated to maintenance to avoid a penalty.

The answer for each test case can be computed using the formula: $$ C - M $$, where $$ C $$ is the total credits and $$ M $$ is the minimum required credits.

inputFormat

The input is read from stdin and is structured as follows:

  • The first line contains a single integer T denoting the number of test cases.
  • Each of the following T lines contains two space-separated integers: C (the total available credits) and M (the minimum credits required).

outputFormat

For each test case, output the computed minimum credits allocated to maintenance on a new line. The output should be sent to stdout.

## sample
3
10 3
7 2
5 1
7

5 4

</p>