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

水~~~~~~~~~~~~~~~~~~~~~~~

Posted by Michael112233 at 2016-05-30 14:03:23 on Problem 1663
#include<cstdio>

int main()
{
	int n;
	scanf("%d",&n);
	int i,x,y;
	for(i=1;i<=n;i++)
	{
    	scanf("%d%d",&x,&y);
    	if (x==y||x-2==y)
    	    printf("%d\n",x+y-x%2);
    	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