poj 1663(水题,找规律)

#include<iostream>
#include<cstdio>
using namespace std;
int main(){
    int n,x,y;
    scanf("%d",&n);
    while(n--){
        scanf("%d%d",&x,&y);
        if(x==y){
            printf("%d\n",x*2-x%2);
        }
        else if(x==y+2){
            printf("%d\n",x*2-2-x%2);
        }
        else{
            printf("No Number\n");
        }
    }
    return 0;
}

 

posted @ 2021-07-30 00:23  智人心  阅读(24)  评论(0)    收藏  举报