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; }

浙公网安备 33010602011771号