SPOJ Problem 1112:Number Steps
水题,验证压代码能力。。。
#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)); } }
posted on 2015-03-03 19:55 problemcutter 阅读(113) 评论(0) 收藏 举报
浙公网安备 33010602011771号