#include <stdio.h> #include <stdlib.h> int main() { int n; scanf("%d",&n); while(n--) { int x,y; scanf("%d %d",&x,&y); if(x%2==0) { if(y==x) printf("%d\n",x+y); else if(y==(x-2)) { printf("%d\n",x+y); } else printf("No Number\n"); } else { if(y==x) printf("%d\n",x+y-1); else if(y==(x-2)) { printf("%d\n",x+y-1); } else printf("No Number\n"); } } return 0; }
纯粹找规律
时间: 2024-10-19 22:15:19