dimanche 19 mai 2019

Given two numbers a; b. Print two numbers x; y : 1) x; y 2) [a; b] x + y = x xor y

Input The first line contains two integers a; b ((1 <= a <= b <=10^18) Output Print two integers - the answer to the problem. If there is no answer, output -1.

include

using namespace std;

Aucun commentaire:

Enregistrer un commentaire