标签:
#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; }
纯粹找规律
标签:
原文地址:http://www.cnblogs.com/gabygoole/p/4498561.html