hdu 1391Number Steps

点击打开链接

#include"stdio.h"
int main()
{
	int x,y,t;
	scanf("%d",&t);
	while(t--)
	{
		scanf("%d%d",&x,&y);
		if(x==y||x==y+2)
		{
			if(x%2==0)
				printf("%d\n",x+y);
			else
				printf("%d\n",x+y-1);
		}
		else
			printf("No Number\n");
	}
	return 0;
}


posted on 2012-08-03 18:23  Slege  阅读(86)  评论(0编辑  收藏  举报

导航