| ||||||||||
| 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 | |||||||||
Re:需要数组吗?、、庆祝自己刷了130道水题、、几行解决、、In Reply To:需要数组吗?、、庆祝自己刷了130道水题、、几行解决、、 Posted by:734330469 at 2011-07-29 23:38:04 #include<iostream>
using namespace std;
int main()
{
int t,x,y;
cin>>t;
while(t--)
{
cin>>x>>y;
if(x==y||x==y+2) cout<<x+y-(x&1)<<endl;
else cout<<"No Number"<<endl;
}
return 0;
}
Followed by: Post your reply here: |
All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator