#include <iostream>
using namespace std;
int main()
{
long int n;
cin >> n;
for ( long int i = 0; i < n; i++ ) {
long int x,y;
cin >> x;
cin >> y;
if (x == 0 && y == 0 ) {
cout << x << endl;
}
else if (x%2 == 0 && y == 0 ) {
cout << x+y << endl;
}
else if ( x%2 == 0 && y%2 == 0 ) {
cout << x+y << endl;
}
else if ( x%2 != 0 && y%2 != 0 ) {
cout << (x+y)-1 << endl;
}
else {
cout << "No Number\n";
}
}
return 0;
}
created
last reply
- 5
replies
- 133
views
- 2
users