Online JudgeProblem SetAuthorsOnline ContestsUser
Web Board
Home Page
F.A.Qs
Statistical Charts
Problems
Submit Problem
Online Status
Prob.ID:
Register
Update your info
Authors ranklist
Current Contest
Past Contests
Scheduled Contests
Award Contest
User ID:
Password:
  Register

ko!

Posted by pig8310 at 2007-03-29 13:34:22 on Problem 1663
#include "stdio.h"
void main()
{
	long x,y,n,i;
	scanf("%d",&n);
	for(i=0;i<n;i++)
	{
		scanf("%d%d",&x,&y);
		if(x==y||(x-2)==y)
		{
			if(x%2==0&&y%2==0)printf("%d\n",x+y);
			else printf("%d\n",x+y-1);
		}
		else printf("No Number\n");
	}
}
	

Followed by:

Post your reply here:
User ID:
Password:
Title:

Content:

Home Page   Go Back  To top


All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator