标签:
水题,验证压代码能力。。。
#include<cstdio> #include<cstring> int main(){ int n,x,y; scanf("%d",&n); while(n--){ scanf("%d%d",&x,&y); if (x!=y&&x-2!=y) printf("No Number\n"); else printf("%d\n",x+y-(y&1)); } }
SPOJ Problem 1112:Number Steps
标签:
原文地址:http://www.cnblogs.com/moris/p/4311826.html