HD ACM 1391
如果有数,那么x ==y 或者 x==y+2,当x为奇数时,结果为x+y-1,否则为x+y;
import java.util.Scanner;public class Main {public static void main(String[] args) {Scanner sc = new Scanner(System.in);int n = sc.nextInt();while(n-->0){int x = sc.nextInt();int y = sc.nextInt();if (x ==y || x==y+2) {if (x%2==1) {System.out.println((x+y-1));}else{System.out.println((x+y));}continue;}System.out.println("No Number");}}
}