# DWITE Online Computer Programming Contest

## Mini DWITE

November 2009
Problem 2

The basic idea behind DWITE’s judge is to run your programs against the test input, and compare the result against the test output. To get a better understanding, here we’ll make a miniature judge that tests a simple addition function.

The input file DATA2.txt will contain 5 sets, each 5 lines of two non-negative integers (0 ≤ n ≤ 100) separated by a space, followed by 5 lines of “expected” output. That is, the total input is 50 lines long.

You “run a solution” by adding the input integers, and then checking if it matches the number in the “expected output” part. Add 1 point for each match, 0 for different numbers.

The output file OUT2.txt will contain 5 lines, each a score for a set.

Explanation of the sample input below:

• 1 + 2 = 3; score point
• 2 + 3 = 5; score point
• 3 + 4 = 7; score point
• 4 + 5 ≠ 10; no point
• 5 + 6 = 11; score point
Sample Input (first set shown):
```1 2
2 3
3 4
4 5
5 6
3
5
7
10
11```
Sample Output (first set shown):
`4`