| ||||||||||
| 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 | |||||||||
为什么老说是presentation error 大虾们帮帮忙!!#include <iostream.h>
int n;
long int x,y;
void main()
{
cin>>n;
for(int i=0;i<n;i++)
{
cin>>x>>y;
if(x!=y&&(x-2)!=y)
cout<<"No Number"<<endl;
else
if(x%2==0)
cout<<x+y<<endl;
else
if(x%2==1)
cout<<x+y-1;
}
}
Followed by:
Post your reply here: |
All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator