Problem Link-
https://www.codechef.com/problems/REMISS
Solution Link-
https://decencytopeak.wordpress.com/2021/10/24/chef-and-remissness/
Telegram Channel Link-
https://t.me/joinchat/pZ-rqIWg4CJiOWQ1
============================================
The office where the Chef works, has two guards who count how many times a person enters into the office building. Though the duty of a guard is 24 hours in a day, sometimes they fall asleep during their duty and do not track the entry of a person in the office building. But one good thing is that they never fall asleep at the same time. At least one of them remains awake and counts who enters into the office.
Now the boss of Chef wants to calculate how many times the Chef has entered into the building. The boss asked to the guard and they gave him two integers A and B, the count of first guard and second guard respectively.
Help the boss to count the minimum and maximum number of times Chef could have entered into the office building.
Input
The first line of the input contains an integer T denoting the number of test cases. The description of the T test cases follows.
Each test case consists of a line containing two space separated integers A and B.
Output
For each test case, output a single line containing two space separated integers, the minimum and maximum number of times Chef could have entered into the office building.
Constraints
1 ≤ T ≤ 100
0 ≤ A, B ≤ 1000000
Example
Input:
1
19 17
Output:
19 36
=====================================
Guys Please Like share and subscribe for more videos
comment down on what topic you want next video
Tags:-
programming
coding
scratch online
python programming
java script
web development
coding bootcamp
plc programming
python coding
java programming
java online
programming languages
learn python
object oriented programming
c programming language
python projects
scratch coding
scratch programming
learn to code
python course
python basics
artificial intelligence course
coding for beginners
coding languages
coding games
python for beginners
learn java
java developer
computer languages
no code
udemy python
game development
web development courses
java code
java class
python exercises
python programming language
codecademy python
code with mosh
java programming language
python projects for beginners
minecraft code
python stack
java for
code camp
c code
full stack web developer
coding courses
c++ code
the c++ programming language
full stack developer course
python script
python developer
python machine learning
unity c#
kotlin android
deep learning with python
code online
python programming examples
object oriented
web programming
sql language
ui ux design course
ux design course
java object
coding
programming
data structure
c++
scratch online
python programming
java script
c programming
web development
c++ online
object oriented programming
learn python
programming languages
binary search tree
binary tree
java online
java programming
python coding
plc programming
coding bootcamp
c programming language
python projects
c++ programming
scratch coding
scratch programming
struct
learn to code
python course
python basics
coding for beginners
#competitiveprogramming #androiddeveloper
#pythondeveloper #datastructure #appdeveloper #javaprogramming #developerlife #programminglanguage #pythonprogramming #programmers #coder #programming #programming #programmingisfun #html #css #developer #javascript #programmer #coding #coder #software #gamedevelopment #gamedevelopers #gameprogramming #gameprogrammer #codes #html5 #utility #devtip #gamedevtips #performance #palingdrome #palimgdromeinc
watermelon codeforces solution c++,watermelon codeforces,watermelon codeforces solution,watermelon problem codeforces in java,watermelon problem codeforces,codeforces watermelon solution,codeforces watermelon solution in c,codeforces watermelon solution in python,codeforces watermelon,codeforces,watermelon solution,codeforces problem solving,codeforces problems solutions,codeforces problems for beginners,solving codeforces problems,codeforces problem 1a solution