您的位置:首页 > 其它

ZOJ 1414

2010-05-12 10:55 393 查看
#include<iostream>
using namespace std;

int main()
{
int out,n,x,y;
cin>>n;
while(n--)
{
cin>>x>>y;
if(x==y||x-y==2)
{
if(x%2==0)
out=x+y;
else
out=x+y-1;
cout<<out<<endl;
}
else
cout<<"No Number"<<endl;
}
return 0;
}
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: