#include <iostream>
using namespace std;
int main()
{
int tc, i, x, y;
cin >> tc;
bool flag;
while (tc--){
cin >> x >> y;
flag = false;
if (x % 2 == 0 && y % 2 == 0){
if (y == x - 2 || x == y)
cout << x + y << endl;
else
cout << "No Number" << endl;
}
else if (x % 2 == 1 && y % 2 == 1){
if (y == x - 2 || x == y)
cout << x + y - 1 << endl;
else
cout << "No Number" << endl;
}
else
cout << "No Number" << endl;
}
system("pause");
}
poj 1663 Number Steps
最新推荐文章于 2019-03-28 22:54:37 发布