import java.util.Scanner;
public class Main
{
public static void main(String[] args)
{
Scanner sc = new Scanner(System.in);
int count = sc.nextInt();
for (int i = 0; i < count; i++)
{
int x = sc.nextInt();
int y = sc.nextInt();
if (y != x && y != (x - 2))
System.out.println("No Number");
else if (y == x)
System.out.println(x % 2 == 0 ? 2 * x : 2 * x - 1);
else
System.out.println(x % 2 == 0 ? 2 * x - 2 : 2 * x - 3);
}
}
}
ZOJ-1414
最新推荐文章于 2020-09-25 20:11:55 发布