| ||||||||||
| 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 | |||||||||
水#include<stdio.h>
int main() {
int n;
scanf("%d",&n);
while(n--){
int a,b;
scanf("%d%d",&a,&b);
if(a>>31||b>>31||(a^b)&&(a-b-2))printf("No Number\n");
else if(!(a^b)){
printf("%d\n",2*b-b%2);
}
else{
printf("%d\n",2*b+2-b%2);
}
}
return 0;
}
Followed by: Post your reply here: |
All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator