#C2286. Taco Festival Profit Calculation

    ID: 45585 Type: Default 1000ms 256MiB

Taco Festival Profit Calculation

Taco Festival Profit Calculation

At the Taco Festival, each day the Chef handles different sales and expenditures. For every test case, you are given two integers: revenue \(X\) and cost \(Y\). Your task is to determine the net profit or loss for that day, computed as \(X - Y\).

The problem is simple yet fundamental, requiring you to implement a solution that reads the number of test cases followed by pairs of integers representing revenue and cost. For each pair, you should output the result of the subtraction on a new line.

inputFormat

The input is given via standard input (stdin). 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 (X) and (Y), representing revenue and cost respectively.

outputFormat

For each test case, output the net profit or loss on a separate line. The net profit or loss is calculated as (X - Y).## sample

3
5000 3000
4000 4000
2000 5000
2000

0 -3000

</p>