题解 | Number Steps
#include <bits/stdc++.h>
using namespace std;
int main(){
int x,y;
while(cin>>x>>y){
if(x==y){
if(x%2==0)cout<<x+y<<endl;
else cout<<x+y-1<<endl;
}else if(x-y==2){
if(x%2==0)cout<<x+y<<endl;
else cout<<x+y-1<<endl;
}else cout<<"No Number"<<endl;
}
}
题目输入有误,但是实际上本题逻辑非常简单
