Can i make my code shorter of julka problem

@rupeshjha909
As far as C++ is concerned, your solution is very good. Making your code any shorter would make it untidy and difficult to read and understand. Its really good. Leave it as it is.
As for a shorter solution , I would suggest you to use Java or Python for Big Integer problems. Use C++ for all other problems if you feel comfortable with that but using C++ for Big Integers becomes hectic.
For example, this is the complete Python solution for this problem.


for _ in range(10):
    y = int(input())
    c = int(input())
    x = (y-c)//2

    print(x+c,x,sep='\n')
1 Like

I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.

On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.