There are three problems and three kids. The problems are worth 1, 2, and 4 points, respectively. Each problem is solved by exactly 2 kids, earning them points. Given the scores of two kids, find the score of the third kid. Entrada The first line is an integer (1≤t≤105), the number of test cases. Each test case contains a line with two integers (1≤a,b≤7), which are the scores obtained by two kids. Salida For each test case, print a single integer in a line: the score of the third kid.
Dear CUJAE students!
Welcome to the Arréglatelas Contest for first-year students, presented by the teachers of the subject Introduction to Programming of the Faculty of Informatics, we wish you the best of luck.
We hope you enjoy the contests and see many Accepted.