URI Online Judge | 1028
Collectable Cards

Input
The first input line contains a single integer N (1 ≤ N ≤ 3000), indicating the number of test cases. Each test case contains two integer numbers F1 (1 ≤ F1 ≤ 1000) and F2 (1 ≤ F2 ≤ 1000) indicating, respectly, the among of collectable cards that Richard and Vicent have to change.
Output
For each test case there will be an integer number at the output, representing the maximum size of the stack of cards which can be exchanged between two players.
| Input Sample | Output Sample |
| 3 8 12 9 27 259 111 | 4 9 37 |
[WAIT]
First of all, think yourself that you have tried enough for the problem. If you did not please read the program once. REMEMBER one thing, just believe in yourself.....YOU CAN.....YOU KNOW....
See the ANSWER here...
No comments:
Post a Comment