| ||||||||||
| Online Judge | Problem Set | Authors | Online Contests | User | ||||||
|---|---|---|---|---|---|---|---|---|---|---|
| Web Board Home Page F.A.Qs Statistical Charts | Current Contest Past Contests Scheduled Contests Award Contest | |||||||||
水题贴个水代码。。。5000的问题不做评价。。。#include<iostream>
using namespace std;
int main()
{
int n,a,b;
cin>>n;
for(int i=0;i<n;i++)
{
cin>>a>>b;
if(a!=b && a!=b+2)cout<<"No Number"<<endl;
else
{
if(a%2==0)cout<<a+b<<endl;
else cout<<a+b-1<<endl;
}
}
system("pause");
return 0;
}
Followed by: Post your reply here: |
All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator